A - the first element typeB - the second element typepublic class UnorderedPair<A,B> extends Pair<A,B> implements Serializable
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.
| Constructor and Description | 
|---|
| UnorderedPair(A a,
             B b)Create a new unordered pair | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(Object o) | 
| int | hashCode() | 
| static <A,B> UnorderedPair<A,B> | of(A a,
  B b)Creates new unordered pair of elements pulling of the necessity to provide corresponding
 types of the elements supplied. | 
| String | toString() | 
public static <A,B> UnorderedPair<A,B> of(A a, B b)
A - the first element typeB - the second element typea - first elementb - second elementCopyright © 2019. All rights reserved.