public static class SimpleFragment.FieldComparator extends Object implements Comparator<SimpleFragment>
SimpleFragment
s according to a field.Constructor and Description |
---|
FieldComparator(String key) |
Modifier and Type | Method and Description |
---|---|
int |
compare(SimpleFragment frag1,
SimpleFragment frag2) |
<T> int |
doCompare(SimpleFragment frag1,
SimpleFragment frag2) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public FieldComparator(String key)
public int compare(SimpleFragment frag1, SimpleFragment frag2)
compare
in interface Comparator<SimpleFragment>
public <T> int doCompare(SimpleFragment frag1, SimpleFragment frag2)
Copyright © 2016 Nuxeo SA. All rights reserved.