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.
  • Enum Constant Details

    • ZERO_OR_ONE

      public static final KiwiPrimitives.BooleanConversionOption 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

      public static final KiwiPrimitives.BooleanConversionOption NON_ZERO_AS_TRUE
      Convert numeric values into boolean where any non-zero value represents true, and zero represents false.
  • Method Details

    • values

      public static KiwiPrimitives.BooleanConversionOption[] 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

      public static KiwiPrimitives.BooleanConversionOption valueOf(String name)
      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 name
      NullPointerException - if the argument is null