public class Pair<T>
extends java.lang.Object
Bi
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
T |
getItem1()
Returns this pair's first item.
|
T |
getItem2()
Returns this item's second item.
|
int |
hashCode() |
static <S> Pair<S[]> |
splitArray(S[] in)
Splits an array into two consituent parts.
|
static <S> Pair<java.util.Collection<S>> |
splitCollection(java.util.Collection<S> in)
Splits a collection into two constituent parts.
|
java.lang.String |
toString() |
public T getItem1()
public T getItem2()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public static <S> Pair<java.util.Collection<S>> splitCollection(java.util.Collection<S> in)
in
- input collection; unaffected on exitpublic static <S> Pair<S[]> splitArray(S[] in)
in
- input array; unaffected on exit