Package org.kiwiproject.base
Enum Class KiwiPrimitives.BooleanConversionOption
java.lang.Object
java.lang.Enum<KiwiPrimitives.BooleanConversionOption>
org.kiwiproject.base.KiwiPrimitives.BooleanConversionOption
- All Implemented Interfaces:
Serializable,Comparable<KiwiPrimitives.BooleanConversionOption>,Constable
- Enclosing class:
- KiwiPrimitives
public static enum KiwiPrimitives.BooleanConversionOption
extends Enum<KiwiPrimitives.BooleanConversionOption>
Enum representing options for converting a numeric value into a boolean.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionConvert numeric values into boolean where any non-zero value represents true, and zero represents false.Convert numeric values into boolean where one represents true and zero represents false. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ZERO_OR_ONE
Convert numeric values into boolean where one represents true and zero represents false. No other values are allowed. -
NON_ZERO_AS_TRUE
Convert numeric values into boolean where any non-zero value represents true, and zero represents false.
-
-
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
-