Enum FormatSeparator
- java.lang.Object
-
- java.lang.Enum<FormatSeparator>
-
- org.cyclos.model.system.configurations.FormatSeparator
-
- All Implemented Interfaces:
Serializable,Comparable<FormatSeparator>
public enum FormatSeparator extends Enum<FormatSeparator>
Contains the possible separators for formatting parts
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANGLED_BRACKETSCOMMACURLY_BRACESDASHDOUBLE_COLONFORWARD_SLASHGREATER_THANPARENTHESISPERIODPIPESQUARE_BRACKETSUNDERSCORE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringapply(Collection<String> parts)StringgetPrefix()StringgetSeparator()StringgetSuffix()booleanisAround()booleanisBetween()StringtoString()static FormatSeparatorvalueOf(String name)Returns the enum constant of this type with the specified name.static FormatSeparator[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FORWARD_SLASH
public static final FormatSeparator FORWARD_SLASH
-
DASH
public static final FormatSeparator DASH
-
UNDERSCORE
public static final FormatSeparator UNDERSCORE
-
PIPE
public static final FormatSeparator PIPE
-
COMMA
public static final FormatSeparator COMMA
-
PERIOD
public static final FormatSeparator PERIOD
-
GREATER_THAN
public static final FormatSeparator GREATER_THAN
-
DOUBLE_COLON
public static final FormatSeparator DOUBLE_COLON
-
PARENTHESIS
public static final FormatSeparator PARENTHESIS
-
ANGLED_BRACKETS
public static final FormatSeparator ANGLED_BRACKETS
-
CURLY_BRACES
public static final FormatSeparator CURLY_BRACES
-
SQUARE_BRACKETS
public static final FormatSeparator SQUARE_BRACKETS
-
-
Method Detail
-
values
public static FormatSeparator[] 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 (FormatSeparator c : FormatSeparator.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FormatSeparator 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
-
apply
public String apply(Collection<String> parts)
-
getPrefix
public String getPrefix()
-
getSeparator
public String getSeparator()
-
getSuffix
public String getSuffix()
-
isAround
public boolean isAround()
-
isBetween
public boolean isBetween()
-
toString
public String toString()
- Overrides:
toStringin classEnum<FormatSeparator>
-
-