util
Class UnorderedPair<A>
java.lang.Object
util.Pair<A,A>
util.UnorderedPair<A>
- Type Parameters:
A
- Type of both components
- Direct Known Subclasses:
- ObjectUndirectedEdge
public class UnorderedPair<A>
- extends Pair<A,A>
Unordered pair type. (a, b) == (b, a)
Constructor Summary |
UnorderedPair(A first,
A second)
Creates an unordered pair with the specified components. |
UnorderedPair
public UnorderedPair(A first,
A second)
- Creates an unordered pair with the specified components.
- Parameters:
first
- the first componentsecond
- the second component
toString
public String toString()
- Overrides:
toString
in class Pair<A,A>
equals
public boolean equals(Object other)
- Overrides:
equals
in class Pair<A,A>
hashCode
public int hashCode()
- Overrides:
hashCode
in class Pair<A,A>