public enum StringPreparations extends Enum<StringPreparations> implements StringPreparation
| Enum Constant and Description |
|---|
NO_PREPARATION
Implementation of StringPreparation that performs no preparation.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract String |
doNormalize(String value) |
String |
normalize(String value)
Normalize a UTF-8 String according to this String Preparation rules.
|
static StringPreparations |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StringPreparations[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StringPreparations NO_PREPARATION
public static StringPreparations[] values()
for (StringPreparations c : StringPreparations.values()) System.out.println(c);
public static StringPreparations 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 nullprotected abstract String doNormalize(String value) throws IllegalArgumentException
IllegalArgumentExceptionpublic String normalize(String value) throws IllegalArgumentException
StringPreparationnormalize in interface StringPreparationvalue - The String to prepareIllegalArgumentException - If the String to prepare is not valid.Copyright © 2017–2020. All rights reserved.