public static enum BooleanFormatter.Type extends java.lang.Enum<BooleanFormatter.Type>
Enum Constant and Description |
---|
ONE_ZERO
Display 1/0.
|
TRUE_FALSE
Display true/false.
|
YES_NO
Display yes/no.
|
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
falseValue |
private java.lang.String |
trueValue |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getString(boolean value) |
static BooleanFormatter.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BooleanFormatter.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BooleanFormatter.Type YES_NO
public static final BooleanFormatter.Type TRUE_FALSE
public static final BooleanFormatter.Type ONE_ZERO
private final java.lang.String trueValue
private final java.lang.String falseValue
public static BooleanFormatter.Type[] values()
for (BooleanFormatter.Type c : BooleanFormatter.Type.values()) System.out.println(c);
public static BooleanFormatter.Type valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getString(boolean value)