Interface Pair<T1,T2>
- All Superinterfaces:
Comparable<Pair<T1,
,T2>> Serializable
- All Known Subinterfaces:
Twin<T>
A Pair is a container that holds two related objects. It is the equivalent of an Association in Smalltalk, or an
implementation of Map.Entry in the JDK.
An instance of this interface can be created by calling Tuples.pair(Object, Object) or Tuples.twin(Object, Object).
-
Method Summary
Methods inherited from interface java.lang.Comparable
compareTo