public static enum PrettyPrinter.Unit extends Enum<PrettyPrinter.Unit>
Enum Constant and Description |
---|
BOOLEAN |
LONG |
NONE |
TIME_INTERVAL |
Modifier and Type | Method and Description |
---|---|
static PrettyPrinter.Unit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PrettyPrinter.Unit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PrettyPrinter.Unit TIME_INTERVAL
public static final PrettyPrinter.Unit LONG
public static final PrettyPrinter.Unit BOOLEAN
public static final PrettyPrinter.Unit NONE
public static PrettyPrinter.Unit[] values()
for (PrettyPrinter.Unit c : PrettyPrinter.Unit.values()) System.out.println(c);
public static PrettyPrinter.Unit 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 nullCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.