Serializable
, Comparator<CustomFieldValue>
public static final class CustomFieldUtilities.CustomFieldValueByNameComparator extends Object implements Comparator<CustomFieldValue>, Serializable
If 2 instances have the same name, they are ordered by sortOrder.
It doesn't take into account the custom field.
It should therefore only be used to compare options that belong to a
single custom field.
Constructor | Description |
---|---|
CustomFieldValueByNameComparator(Locale locale) |
Modifier and Type | Method | Description |
---|---|---|
int |
compare(CustomFieldValue a,
CustomFieldValue b) |
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public CustomFieldValueByNameComparator(Locale locale)
public int compare(CustomFieldValue a, CustomFieldValue b)
compare
in interface Comparator<CustomFieldValue>
Copyright © 2002–2019 itracker. All rights reserved.