public static enum StringPaddingFunction.Strategy extends Enum<StringPaddingFunction.Strategy>
| Enum Constant and Description |
|---|
LEFT_PAD
The input string in left-padded to the given size using the padString
|
RIGHT_PAD
The input string in right-padded to the given size using the padString
|
| Modifier and Type | Method and Description |
|---|---|
abstract String |
execute(String input,
Integer size,
String padString) |
static StringPaddingFunction.Strategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StringPaddingFunction.Strategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StringPaddingFunction.Strategy RIGHT_PAD
public static final StringPaddingFunction.Strategy LEFT_PAD
public static StringPaddingFunction.Strategy[] values()
for (StringPaddingFunction.Strategy c : StringPaddingFunction.Strategy.values()) System.out.println(c);
public static StringPaddingFunction.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.