You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
443 B
24 lines
443 B
package engine.util; |
|
|
|
public class Pair<A, B> { |
|
private final A first; |
|
private final B second; |
|
|
|
public Pair(A first, B second) { |
|
this.first = first; |
|
this.second = second; |
|
} |
|
|
|
public A getFirst() { |
|
return first; |
|
} |
|
|
|
public B getSecond() { |
|
return second; |
|
} |
|
|
|
@Override |
|
public String toString() { |
|
return "Pair{" + "first=" + first + ", second=" + second + '}'; |
|
} |
|
}
|
|
|