mirror-chhoto-url/src/main/java/tk/draganczuk/url/Pair.java
Przemek Dragańczuk d80024c494 Base api works
2020-02-13 23:52:33 +01:00

37 lines
478 B
Java

package tk.draganczuk.url;
/**
* Pair
*/
public class Pair<T, U> {
private T left;
private U right;
public Pair(T left, U right) {
this.left = left;
this.right = right;
}
public static <T, U> Pair<T, U> of(T left, U right){
return new Pair<T,U>(left, right);
}
public T getLeft() {
return left;
}
public void setLeft(T left) {
this.left = left;
}
public U getRight() {
return right;
}
public void setRight(U right) {
this.right = right;
}
}