Interface Twin<T>
-
- All Superinterfaces:
Comparable<Pair<T,T>>,Pair<T,T>,Serializable
public interface Twin<T> extends Pair<T,T>
A Twin is a Pair where both elements have the same type. An instance of this interface can be created by calling Tuples.twin(Object, Object).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Twin<T>swap()Method used to swap the elements of pair.-
Methods inherited from interface java.lang.Comparable
compareTo
-
-