public enum StringTransformation extends Enum<StringTransformation>
Enum Constant and Description |
---|
CAMELCASE |
CAPITALIZE |
LOWERCASE |
NONE |
UPPERCASE |
Modifier and Type | Method and Description |
---|---|
String |
apply(String value)
Applies a transformation to the provided string
|
static StringTransformation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StringTransformation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StringTransformation CAMELCASE
public static final StringTransformation CAPITALIZE
public static final StringTransformation LOWERCASE
public static final StringTransformation NONE
public static final StringTransformation UPPERCASE
public String apply(String value)
value
- The string to be transformedpublic static StringTransformation 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 nullpublic static StringTransformation[] values()
for (StringTransformation c : StringTransformation.values()) System.out.println(c);
Copyright © 2024 Exadel, Inc.. All rights reserved.