@Status(stage=PRODUCTION) @Review(by="Kees Schotanus", at="2009-09-28") public enum Trim extends Enum<Trim>
| Enum Constant and Description |
|---|
ALL
All (Trim all characters from a String).
|
BOTH
Both (Trim Left and Right).
|
LEFT
Left.
|
RIGHT
Right.
|
| Modifier and Type | Method and Description |
|---|---|
static Trim |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Trim[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Trim LEFT
public static final Trim RIGHT
public static final Trim BOTH
public static final Trim ALL
public static Trim[] values()
for (Trim c : Trim.values()) System.out.println(c);
public static Trim 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 © 2008–2017. All rights reserved.