*/
public class Pair<T, U> {
- private T _t;
+ private T t;
- private U _u;
+ private U u;
/**
* Constructs the pair.
* Second object.
*/
public Pair(T aT, U aU) {
- _t = aT;
- _u = aU;
+ t = aT;
+ u = aU;
}
/**
* Pair to copy.
*/
public Pair(Pair<T, U> aPair) {
- _t = aPair._t;
- _u = aPair._u;
+ t = aPair.t;
+ u = aPair.u;
}
/**
* @return First object.
*/
public T getFirst() {
- return _t;
+ return t;
}
/**
* @return Second object.
*/
public U getSecond() {
- return _u;
+ return u;
}
}