Package org.jinq.tuples
Class Pair<T,U>
- java.lang.Object
-
- org.jinq.tuples.Tuple
-
- org.jinq.tuples.Pair<T,U>
-
public class Pair<T,U> extends Tuple
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)TgetOne()UgetTwo()inthashCode()static <V,W>
java.util.Collection<Pair<V,W>>PairCollection(V one, java.util.Collection<W> twoList)java.lang.StringtoString()-
Methods inherited from class org.jinq.tuples.Tuple
createTuple
-
-
-
-
Method Detail
-
getOne
public T getOne()
-
getTwo
public U getTwo()
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
PairCollection
public static <V,W> java.util.Collection<Pair<V,W>> PairCollection(V one, java.util.Collection<W> twoList)
-
-