Package com.fa993.types.supertype
Class Pair<P,Q>
- java.lang.Object
-
- com.fa993.types.supertype.Pair<P,Q>
-
- Type Parameters:
P
- the type of the first elementQ
- the type of the second element
- Direct Known Subclasses:
PairOfDoubleOrDArr
public class Pair<P,Q> extends Object
A generic class representing a pair of two related objects.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description P
getFirst()
Gets the first element of the pair.Q
getSecond()
Gets the second element of the pair.
-