public class Pair<L extends Comparable<? super L>,R extends Comparable<? super R>> extends Object implements Comparable<Pair<L,R>>
| Modifier and Type | Method and Description |
|---|---|
protected <T extends Comparable<? super T>> |
compare(T thisObject,
T otherObject) |
int |
compareTo(Pair<L,R> pair) |
boolean |
equals(Object other) |
L |
getLeft() |
R |
getRight() |
int |
hashCode() |
String |
toString() |
public L getLeft()
public R getRight()
public int compareTo(@NotNull
Pair<L,R> pair)
compareTo in interface Comparable<Pair<L extends Comparable<? super L>,R extends Comparable<? super R>>>protected <T extends Comparable<? super T>> int compare(T thisObject, T otherObject)
Copyright © 2014. All rights reserved.