public class TreeLengthComparator extends Object implements Comparator<Tree>
TreeLengthComparator orders trees by their yield sentence
lengths.| Constructor and Description |
|---|
TreeLengthComparator()
Create a new
TreeLengthComparator. |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Tree t1,
Tree t2)
Compare the two objects.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequalspublic TreeLengthComparator()
TreeLengthComparator.public int compare(Tree t1, Tree t2)
compare in interface Comparator<Tree>