public static enum UnaryStringFunction.Strategy extends Enum<UnaryStringFunction.Strategy> implements UnaryOperator<String>
| Enum Constant and Description |
|---|
CAMEL
Returns a string in camel case
|
LOWER
Converts a string to all lower-case letters
|
PROPER
Converts a string to proper case; the first letter in each word to upper-case, and all
other letter to lower-case
|
TRIM
Removes leading and trailing spaces from a string
|
UPPER
Converts a string to all upper-case letters
|
| Modifier and Type | Method and Description |
|---|---|
String |
apply(String string) |
static UnaryStringFunction.Strategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UnaryStringFunction.Strategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOfidentitypublic static final UnaryStringFunction.Strategy CAMEL
public static final UnaryStringFunction.Strategy LOWER
public static final UnaryStringFunction.Strategy PROPER
public static final UnaryStringFunction.Strategy TRIM
public static final UnaryStringFunction.Strategy UPPER
public static UnaryStringFunction.Strategy[] values()
for (UnaryStringFunction.Strategy c : UnaryStringFunction.Strategy.values()) System.out.println(c);
public static UnaryStringFunction.Strategy 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 © 2023. All rights reserved.