|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.myra.antree.TreeComparator
public class TreeComparator
Constructor Summary | |
---|---|
TreeComparator()
|
Method Summary | |
---|---|
int |
compare(Tree t1,
Tree t2)
Compares the two specified tree. |
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 TreeComparator()
Method Detail |
---|
public int compare(Tree t1, Tree t2)
compare
in interface java.util.Comparator<Tree>
t1
- the first tree to be compared.t2
- the second tree to be compared.
-1
if the first tree is 'smaller' that the second;
0
if the tree are 'equal' (same quality and size);
1
if the first tree is 'bigger' than the second
tree.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |