Enum Class BooleanFormatter.Type

java.lang.Object
java.lang.Enum<BooleanFormatter.Type>
net.sf.basedb.util.formatter.BooleanFormatter.Type
All Implemented Interfaces:
Serializable, Comparable<BooleanFormatter.Type>, java.lang.constant.Constable
Enclosing class:
BooleanFormatter

public static enum BooleanFormatter.Type extends Enum<BooleanFormatter.Type>
Enum for holding the various types of boolean output.
  • Enum Constant Details

  • Field Details

    • trueValue

      private final String trueValue
    • falseValue

      private final String falseValue
  • Constructor Details

  • Method Details

    • values

      public static BooleanFormatter.Type[] 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 BooleanFormatter.Type 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
    • getByName

      public static BooleanFormatter.Type getByName(String cName)
      Get the type by name of the static constant defined in this class.
      Parameters:
      cName - The name of the static constant
      Returns:
      A subtype object or null if not found
      Since:
      3.19.12
    • getString

      public String getString(boolean value)
    • getExcelValue

      public ExcelValue<?> getExcelValue(Boolean value)