public enum Trim extends Enum<Trim>
Enum Constant and Description |
---|
WHITESPACE
Trim whitespace from the beginning and end of the string value.
|
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 WHITESPACE
String.trim()
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 © 2022. All rights reserved.