public enum PrintMode extends Enum<PrintMode>
PrintMode lists all acceptable JSON print mode of the
JsonFlattener.| Enum Constant and Description |
|---|
MINIMAL
Prints output as minified JSON.
|
PRETTY
Prints each objects in different lines with necessary indentations.
|
REGULAR
Prints output in one line with necessary indentations.
|
| Modifier and Type | Method and Description |
|---|---|
static PrintMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PrintMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PrintMode MINIMAL
public static final PrintMode REGULAR
public static final PrintMode PRETTY
public static PrintMode[] values()
for (PrintMode c : PrintMode.values()) System.out.println(c);
public static PrintMode 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 © 2018. All rights reserved.