public static enum BooleanFormatter.Type extends 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 String |
falseValue |
private String |
trueValue |
Modifier and Type | Method and Description |
---|---|
String |
getString(boolean value) |
static BooleanFormatter.Type |
valueOf(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
public static BooleanFormatter.Type[] values()
for (BooleanFormatter.Type c : BooleanFormatter.Type.values()) System.out.println(c);
public static BooleanFormatter.Type valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic String getString(boolean value)