Package com.ibm.icu.impl
Class Pair<F,S>
- java.lang.Object
-
- com.ibm.icu.impl.Pair<F,S>
-
- Type Parameters:
F
- first object typeS
- second object type
public class Pair<F,S> extends java.lang.Object
A pair of objects: first and second.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object other)
int
hashCode()
static <F,S>
Pair<F,S>of(F first, S second)
Creates a pair object
-
-
-
Method Detail
-
of
public static <F,S> Pair<F,S> of(F first, S second)
Creates a pair object- Parameters:
first
- must be non-nullsecond
- must be non-null- Returns:
- The pair object.
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-