Additional top-level class in compilation unit: ComparatorForPatterns.
Examples: name.first or names.first but not names[1].first or names.[1].first
| Modifier and Type | Field and Description |
|---|---|
| protected final LinkedList |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Stream | Returns: sequence of field-comparator pairsReturns a sequence of associated field-comparator pairs. |
| public Stream | |
| public Comparator | Returns: a custom comparator or nullthe field location that has to be associated with a comparator fieldLocation)Retrieves a custom comparator, which is associated with the giving field location. |
| public boolean | Returns: is field location contain a custom comparatorthe field location which association need to check fieldLocation)Checks, whether an any comparator is associated with the giving field location. |
| public boolean | |
| public boolean | |
| public boolean | |
| public void | registerComparator(String
the location where to apply the comparator fieldLocation, Comparator<?> the comparator itself comparator)Registers the |
| public void | registerComparatorForFieldsMatchingRegexes(String[]
the regexes field location where to apply the comparator regexes, Comparator<?> the comparator to use for the regexes comparator)Registers the |
| comparatorByPatterns | back to summary |
|---|---|
| protected final LinkedList<ComparatorForPatterns> comparatorByPatterns | |
| FieldComparators | back to summary |
|---|---|
| public FieldComparators() | |
| comparatorByFields | back to summary |
|---|---|
| public Stream Returns a sequence of associated field-comparator pairs.
| |
| comparatorByRegexFields | back to summary |
|---|---|
| public Stream | |
| getComparatorForField | back to summary |
|---|---|
| public Comparator Retrieves a custom comparator, which is associated with the giving field location. If this location does not associate with any custom comparators - this method returns null.
| |
| hasComparatorForField | back to summary |
|---|---|
| public boolean hasComparatorForField(String fieldLocation) Checks, whether an any comparator is associated with the giving field location.
| |
| hasFieldComparators | back to summary |
|---|---|
| public boolean hasFieldComparators() | |
| hasRegexFieldComparators | back to summary |
|---|---|
| public boolean hasRegexFieldComparators() | |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Overrides org.
| |
| registerComparator | back to summary |
|---|---|
| public void registerComparator(String fieldLocation, Comparator<?> comparator) Registers the
| |
| registerComparatorForFieldsMatchingRegexes | back to summary |
|---|---|
| public void registerComparatorForFieldsMatchingRegexes(String[] regexes, Comparator<?> comparator) Registers the
| |