blob: 76eea4f790d8f68934eec24db776af3c76ded783 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
package jrummikub.util;
/**
* A pair of objects
* @param <T1> the first type of the pair
* @param <T2> the second type of the pair
*/
public class Pair<T1, T2> {
private final T1 first;
private final T2 second;
/**
* Create a new pair
*
* @param first the first value
* @param second the second value
*/
public Pair(T1 first, T2 second) {
this.first = first;
this.second = second;
}
/**
* @return the first value
*/
public T1 getFirst() {
return first;
}
/**
* @return the first value
*/
public T2 getSecond() {
return second;
}
}
|