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