| Modifier and Type | Class and Description |
|---|---|
| public class | SSort.
A sort comparator returned by |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public SSort. | Returns: the comparatorthe current citation style style, LLocale the current locale locale, AbbreviationProvider the current abbreviation provider abbreviationProvider)Creates a comparator that is able to compare |
| keys | back to summary |
|---|---|
| private final List<SKey> keys | |
| SSort | back to summary |
|---|---|
| public SSort(Node node) Creates the sort element from an XML node
| |
| comparator | back to summary |
|---|---|
| public SSort. Creates a comparator that is able to compare
| |
comparator(SStyle, LLocale, AbbreviationProvider)
| Modifier and Type | Field and Description |
|---|---|
| private final AbbreviationProvider | |
| private int | |
| private final AlphanumComparator | |
| private final LLocale | |
| private final SStyle |
| Access | Constructor and Description |
|---|---|
| public | SortComparator(SStyle
the current citation style style, LLocale the current locale locale, AbbreviationProvider the current abbreviation provider abbreviationProvider)Create a new sort comparator |
| Modifier and Type | Method and Description |
|---|---|
| public int | compare(CSLItemData a, CSLItemData b)
Implements java. Compares its two arguments for order. |
| public int | Returns: the sort direction (1 for ascending and -1
for descending)Get the sort direction of the citation-number variable |
| abbreviationProvider | back to summary |
|---|---|
| private final AbbreviationProvider abbreviationProvider | |
| citationNumberDirection | back to summary |
|---|---|
| private int citationNumberDirection | |
| comparator | back to summary |
|---|---|
| private final AlphanumComparator comparator | |
| locale | back to summary |
|---|---|
| private final LLocale locale | |
| style | back to summary |
|---|---|
| private final SStyle style | |
| SortComparator | back to summary |
|---|---|
| public SortComparator(SStyle style, LLocale locale, AbbreviationProvider abbreviationProvider) Create a new sort comparator
| |
| compare | back to summary |
|---|---|
| public int compare(CSLItemData a, CSLItemData b) 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
| |
| getCitationNumberDirection | back to summary |
|---|---|
| public int getCitationNumberDirection() Get the sort direction of the citation-number variable
| |