- 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 X
getFirst()
Get the first element from the tuple.Y
getSecond()
Get the second element from the tuple.java.lang.String
toString()
-
Methods inherited from class com.jongsoft.lang.collection.tuple.impl.AbstractTuple
toList
-
-
-
-
Method Detail
-
getFirst
public X getFirst()
Description copied from interface:Pair
Get the first element from the tuple.
-
getSecond
public Y getSecond()
Description copied from interface:Pair
Get the second element from the tuple.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-