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