mirror of
https://github.com/Barubary/dsdecmp.git
synced 2024-11-14 23:05:13 +01:00
a597cd23a9
Note that the Java algorithms are a port of the C# ones, and only the LZ10 and LZ11 have been tested of the Java implementation.
19 lines
454 B
Java
19 lines
454 B
Java
public class Pair<T,U> {
|
|
|
|
private T first;
|
|
private U second;
|
|
|
|
public Pair(T one, U two){
|
|
this.first = one;
|
|
this.second = two;
|
|
}
|
|
public Pair(){}
|
|
|
|
public T getFirst(){ return this.first; }
|
|
public void setFirst(T value){ this.first = value; }
|
|
public U getSecond(){ return this.second; }
|
|
public void setSecond(U value){ this.second = value; }
|
|
public boolean allSet(){ return this.first != null && this.second != null; }
|
|
|
|
}
|