|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnz.ac.waikato.mcennis.rat.util.Duples<L,R>
public class Duples<L,R>
Class for ordering pairs of objects so that they stay associated with each other after sorting.
| Constructor Summary | |
|---|---|
Duples()
|
|
Duples(L l,
R r)
|
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object o)
Returns -1 if class L is not comparable, otherwise returns the output of left.compareTo(o.left) |
L |
getLeft()
get left object in the duple |
R |
getRight()
get right object in the duple |
void |
setLeft(L l)
set the left object with this object |
void |
setRight(R r)
set the right object with this object |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Duples()
public Duples(L l,
R r)
| Method Detail |
|---|
public int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparableo - Duples to be compared to
public L getLeft()
public R getRight()
public void setLeft(L l)
l - object to be setpublic void setRight(R r)
r - object to be set
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||