public class BabelExampleComparator extends Object implements Comparator<BabelExample>
Comparator for BabelExamples which sorts by sources.| Constructor and Description |
|---|
BabelExampleComparator()
Creates the example comparator
|
BabelExampleComparator(BabelSense mainSense)
Creates the example comparator with the sense the examples refer to
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(BabelExample b1,
BabelExample b2)
Sort examples by language and source
|
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 BabelExampleComparator(BabelSense mainSense)
mainSense - the sense the examples refer topublic BabelExampleComparator()
public int compare(BabelExample b1, BabelExample b2)
compare in interface Comparator<BabelExample>Copyright © 2016–2022. All rights reserved.