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, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic TreeLengthComparator()
TreeLengthComparator.public int compare(Tree t1, Tree t2)
compare in interface Comparator<Tree>