| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final boolean | |
| private final Comparator | |
| private final Field |
| Access | Constructor and Description |
|---|---|
| public | EntryComparator(boolean
true: the presence of fields is checked; false: the content of the fields is compared binary, boolean true: if the most different entry should get the highest score descending, Field the field to sort on field, Comparator<BibEntry> the next comparator to use (if the current comparator results in equality) next)
|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | compare(BibEntry
the first object to be compared. e1, BibEntry the second object to be compared. e2)Implements java. Compares its two arguments for order. |
| private static int |
| binary | back to summary |
|---|---|
| private final boolean binary | |
| descending | back to summary |
|---|---|
| private final boolean descending | |
| next | back to summary |
|---|---|
| private final Comparator<BibEntry> next | |
| sortField | back to summary |
|---|---|
| private final Field sortField | |
| EntryComparator | back to summary |
|---|---|
public EntryComparator(boolean binary, boolean descending, Field field, Comparator<BibEntry> next)
| |
| EntryComparator | back to summary |
|---|---|
| public EntryComparator(boolean binary, boolean descending, Field field) | |
| compare | back to summary |
|---|---|
| public int compare(BibEntry e1, BibEntry e2) Implements java. Doc from java. Compares its two arguments for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.
The implementor must ensure that
The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that | |
| idCompare | back to summary |
|---|---|
| private static int idCompare(BibEntry b1, BibEntry b2) | |