java.lang.Object
org.jgrapht.alg.util.Pair<A,B>
org.jgrapht.alg.util.UnorderedPair<A,B>
- Type Parameters:
A
- the first element typeB
- the second element type
- All Implemented Interfaces:
Serializable
Generic unordered pair.
Although the instances of this class are immutable, it is impossible to ensure that the references passed to the constructor will not be modified by the caller.
- Author:
- Joris Kinable
- See Also:
-
Constructor Details
-
UnorderedPair
Create a new unordered pair- Parameters:
a
- an elementb
- another element
-
-
Method Details
-
toString
-
equals
-
hashCode
public int hashCode() -
of
Creates new unordered pair of elements pulling of the necessity to provide corresponding types of the elements supplied.- Type Parameters:
A
- the first element typeB
- the second element type- Parameters:
a
- first elementb
- second element- Returns:
- new unordered pair
-