Method Summary |
|
public static Comparator | getBooleanComparator(boolean nullFirst, boolean trueFirst) Returns the Comparator for Boolean objects
including null values.
Parameters: nullFirst - whether the null value is ordered beforenot-null values. Parameters: trueFirst - whether the true value should be ordered beforethe false value. |
public static Comparator | getDefault() Returns default Comparator for comparing all objects
including null references. |
public static Comparator | getDefault(boolean nullFirst) Returns default Comparator for comparing all objects
including null values.
Parameters: nullFirst - whether the null value is ordered beforenot-null values. |
protected static Comparator | getNotNullStringComparator(boolean ignoreCase, Locale locale) Returns the Comparator for String objects
excluding null values.
Parameters: ignoreCase - whether the Comparator should be case insensitive. Parameters: locale - the Locale of the Comparator ornull if the Comparator should not beLocale-specific. |
public static Comparator | getStringComparator(boolean nullFirst, boolean ignoreCase, Locale locale) Returns the Comparator for String objects
including null values.
Parameters: nullFirst - whether the null value is ordered beforenot-null values. Parameters: ignoreCase - whether the Comparator should be case insensitive. Parameters: locale - the Locale of the Comparator ornull if the Comparator should not beLocale-specific. |