| Enum Constant and Description |
|---|
BOTH
Whitespace characters are trimmed from both ends
|
LEADING
Leading whitespace characters are trimmed
|
NONE
No trimming is performed
|
TRAILING
Trailing whitespace characters are trimmed
|
| Modifier and Type | Method and Description |
|---|---|
static TrimMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TrimMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TrimMode BOTH
public static final TrimMode LEADING
public static final TrimMode TRAILING
public static final TrimMode NONE
public static TrimMode[] values()
for (TrimMode c : TrimMode.values()) System.out.println(c);
public static TrimMode 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 null