public static enum CmpUtil.NullOrdering extends Enum<CmpUtil.NullOrdering>
null
element when using a safe comparator
(CmpUtil.safeComparator(Comparator, NullOrdering)
).Enum Constant and Description |
---|
MAX
null elements are bigger than all regular elements. |
MIN
null elements are smaller than all regular elements. |
Modifier and Type | Field and Description |
---|---|
int |
firstNullResult
Value that determines the result of the comparison, when
only the first value is a
null value. |
Modifier and Type | Method and Description |
---|---|
static CmpUtil.NullOrdering |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CmpUtil.NullOrdering[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CmpUtil.NullOrdering MIN
null
elements are smaller than all regular elements.public static final CmpUtil.NullOrdering MAX
null
elements are bigger than all regular elements.public final int firstNullResult
null
value.public static CmpUtil.NullOrdering[] values()
for (CmpUtil.NullOrdering c : CmpUtil.NullOrdering.values()) System.out.println(c);
public static CmpUtil.NullOrdering valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2015. All Rights Reserved.