mirror of
https://github.com/songoda/EpicEnchants.git
synced 2024-09-27 15:22:45 +02:00
24 lines
427 B
Java
24 lines
427 B
Java
package com.craftaro.epicenchants.utils;
|
|
|
|
public class Tuple<key, value> {
|
|
private final key x;
|
|
private final value y;
|
|
|
|
public Tuple(key x, value y) {
|
|
this.x = x;
|
|
this.y = y;
|
|
}
|
|
|
|
public key getLeft() {
|
|
return this.x;
|
|
}
|
|
|
|
public value getRight() {
|
|
return this.y;
|
|
}
|
|
|
|
public static <key, value> Tuple of(key x, value y) {
|
|
return new Tuple<>(x, y);
|
|
}
|
|
}
|