Package com.graphaware.common.util
Class UnorderedPair<T>
- java.lang.Object
-
- com.graphaware.common.util.Pair<T,T>
-
- com.graphaware.common.util.SameTypePair<T>
-
- com.graphaware.common.util.UnorderedPair<T>
-
- Type Parameters:
T
- type of the objects in the pair.
public class UnorderedPair<T> extends SameTypePair<T>
An immutable pair of objects of the same type, where the order of the pair does not matter.
-
-
Constructor Summary
Constructors Constructor Description UnorderedPair(T first, T second)
Construct a new pair.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
int
hashCode()
-