Package org.bremersee.comparator.model
Enum Class SortOrderItem.NullHandling
java.lang.Object
java.lang.Enum<SortOrderItem.NullHandling>
org.bremersee.comparator.model.SortOrderItem.NullHandling
- All Implemented Interfaces:
Serializable,Comparable<SortOrderItem.NullHandling>,Constable
- Enclosing class:
SortOrderItem
The null-handling.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionNative null-handling.Nulls first handling.Nulls last handling. -
Method Summary
Modifier and TypeMethodDescriptionstatic SortOrderItem.NullHandlingfromString(String nullHandling) From string.booleanIs null first.booleanIs null last.toString()static SortOrderItem.NullHandlingReturns the enum constant of this class with the specified name.static SortOrderItem.NullHandling[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NULLS_FIRST
Nulls first handling. -
NULLS_LAST
Nulls last handling. -
NATIVE
Native null-handling.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
toString
- Overrides:
toStringin classEnum<SortOrderItem.NullHandling>
-
isNullFirst
public boolean isNullFirst()Is null first.- Returns:
- the boolean
-
isNullLast
public boolean isNullLast()Is null last.- Returns:
- the boolean
-
fromString
From string.- Parameters:
nullHandling- the null-handling- Returns:
- the null-handling
-