- java.lang.Object
-
- com.jongsoft.lang.collection.tuple.impl.AbstractTuple
-
- com.jongsoft.lang.collection.tuple.impl.PairImpl<X,Y>
-
- Direct Known Subclasses:
TripletImpl
public class PairImpl<X,Y> extends AbstractTuple implements Pair<X,Y>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PairImpl(java.lang.Object... elements)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XgetFirst()Get the first element from the tuple.YgetSecond()Get the second element from the tuple.java.lang.StringtoString()-
Methods inherited from class com.jongsoft.lang.collection.tuple.impl.AbstractTuple
toList
-
-
-
-
Method Detail
-
getFirst
public X getFirst()
Description copied from interface:PairGet the first element from the tuple.
-
getSecond
public Y getSecond()
Description copied from interface:PairGet the second element from the tuple.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-