Package net.sf.basedb.util.formatter
Enum Class BooleanFormatter.Type
- All Implemented Interfaces:
Serializable
,Comparable<BooleanFormatter.Type>
,java.lang.constant.Constable
- Enclosing class:
- BooleanFormatter
Enum for holding the various types of boolean output.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDisplay 1/0.Display true/false.Display TRUE/FALSEDisplay yes/no. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BooleanFormatter.Type
Get the type by name of the static constant defined in this class.ExcelValue<?>
getExcelValue
(Boolean value) getString
(boolean value) static BooleanFormatter.Type
Returns the enum constant of this class with the specified name.static BooleanFormatter.Type[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
YES_NO
Display yes/no. -
TRUE_FALSE
Display true/false. -
TRUE_FALSE_CAPS
Display TRUE/FALSE- Since:
- 3.19.12
-
ONE_ZERO
Display 1/0.
-
-
Field Details
-
trueValue
-
falseValue
-
-
Constructor Details
-
Type
-
-
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
-
getByName
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
-
getExcelValue
-