|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbarsuift.simLife.tree.TreeLeafComparator
public class TreeLeafComparator
| Constructor Summary | |
|---|---|
TreeLeafComparator()
|
|
| Method Summary | |
|---|---|
int |
compare(TreeLeaf o1,
TreeLeaf o2)
Returns the difference of distance of the 2 arguments from the origin. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Comparator |
|---|
equals |
| Constructor Detail |
|---|
public TreeLeafComparator()
| Method Detail |
|---|
public int compare(TreeLeaf o1,
TreeLeaf o2)
o1 is closer to the origin than o2, it returns a negative valueo1 is at the same distance from the origin as o2, it returns 0o1 is more far than o2 from the origin point, it returns a positive value
compare in interface java.util.Comparator<TreeLeaf>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||