summaryrefslogtreecommitdiffstats
path: root/src/jrummikub/util/Pair.java
blob: 5fb8589755a08702be62ca1cbde1d49e639a6cc8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package jrummikub.util;

/**
 * A pair of objects
 */
public class Pair<T1, T2> {
  final T1 first;
  final T2 second;

  public Pair(T1 first, T2 second) {
    this.first = first;
    this.second = second;
  }

  public T1 getFirst() {
    return first;
  }

  public T2 getSecond() {
    return second;
  }

}