A
- type of the first valueB
- type of the second valuepublic final class Pair<A,B> extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
A |
getFirst()
Returns the first value.
|
B |
getSecond()
Returns the second value.
|
int |
hashCode() |
static <A,B> Pair<A,B> |
newInstance(A first,
B second)
Returns a new instance
|
String |
toString() |
public A getFirst()
public B getSecond()
public static <A,B> Pair<A,B> newInstance(A first, B second)
A
- type of the first valueB
- type of the second valuefirst
- the first valuesecond
- the second valueCopyright © 2011–2022 Stiftung SIC. All rights reserved.