FIRST
- first type (comparable)SECOND
- second typepublic class FCPair<FIRST extends Comparable<? super FIRST>,SECOND> extends Pair<FIRST,SECOND> implements Comparable<FCPair<FIRST,SECOND>>
Constructor and Description |
---|
FCPair(FIRST first,
SECOND second)
Initialize pair
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(FCPair<FIRST,SECOND> other)
Generic derived compare function.
|
static <F extends Comparable<? super F>,S> |
newArray(int size)
Array constructor for generics
|
public int compareTo(FCPair<FIRST,SECOND> other)
compareTo
in interface Comparable<FCPair<FIRST extends Comparable<? super FIRST>,SECOND>>
other
- Object to compare topublic static final <F extends Comparable<? super F>,S> FCPair<F,S>[] newArray(int size)
F
- First typeS
- Second typesize
- Size of array to be constructed