Package dev.aherscu.qa.testing.utils
Enum EnumUtils.Separator
- java.lang.Object
-
- java.lang.Enum<EnumUtils.Separator>
-
- dev.aherscu.qa.testing.utils.EnumUtils.Separator
-
- All Implemented Interfaces:
Serializable
,Comparable<EnumUtils.Separator>
- Enclosing class:
- EnumUtils
public static enum EnumUtils.Separator extends Enum<EnumUtils.Separator>
Allowed separators to be used in enumeration member names in order to allow mapping to/from textual representations and to allow prettifying.- Author:
- aherscu
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DOLLAR
The dollar $ characterUNDERSCORE
The underscore _ character.
-
Field Summary
Fields Modifier and Type Field Description char
value
The character value of this separator.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EnumUtils.Separator
valueOf(String name)
Returns the enum constant of this type with the specified name.static EnumUtils.Separator[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DOLLAR
public static final EnumUtils.Separator DOLLAR
The dollar $ character
-
UNDERSCORE
public static final EnumUtils.Separator UNDERSCORE
The underscore _ character.
-
-
Method Detail
-
values
public static EnumUtils.Separator[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (EnumUtils.Separator c : EnumUtils.Separator.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EnumUtils.Separator valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-