dsdecmp/Java/Pair.java
barubary a597cd23a9 added source code for both C# and Java.
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.
2009-06-07 13:40:49 +00:00

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; }
}