Comparable<Pair<T1,T2>>
, Serializable
Twin<T>
public interface Pair<T1,T2> extends Serializable, Comparable<Pair<T1,T2>>
Modifier and Type | Method | Description |
---|---|---|
T1 |
getOne() |
|
T2 |
getTwo() |
|
void |
put(Map<? super T1,? super T2> map) |
|
Pair<T2,T1> |
swap() |
Method used to swap the elements of pair.
|
Map.Entry<T1,T2> |
toEntry() |
compareTo
Copyright © 2004–2019. All rights reserved.