Package org.refcodes.data
Enum CharSet
- java.lang.Object
-
- java.lang.Enum<CharSet>
-
- org.refcodes.data.CharSet
-
- All Implemented Interfaces:
org.refcodes.mixin.CharSetAccessor
public enum CharSet extends java.lang.Enum<CharSet> implements org.refcodes.mixin.CharSetAccessor
Commonly used char sets.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.mixin.CharSetAccessor
org.refcodes.mixin.CharSetAccessor.CharSetBuilder<B extends org.refcodes.mixin.CharSetAccessor.CharSetBuilder<B>>, org.refcodes.mixin.CharSetAccessor.CharSetMutator, org.refcodes.mixin.CharSetAccessor.CharSetProperty
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALPHABETIC
ALPHANUMERIC
ARABIC_BASE64
ASCII
BASE64
BASE64URL
BINARY
CLOSING_BRACES
Characters representing closing braces.ENCODED_AS_NUMBER
No prefixing zeros allowed when encoding a value to be stored by a (JSON) number variable.END_OF_LINE
HEXADECIMAL
LINE_BREAK_MARKERS
When formatting texts, those chars can be used to identify a possible suitable end of line (when seeking for a position to do a line-break).LOWER_CASE
NUMERIC
OPENING_BRACES
Characters representing opening braces.QUOTES
REGEX_SPECIAL_CHARS
SPACE_MARKERS
When formatting texts, those chars can be used to identify a space between two words.UPPER_CASE
WHITE_SPACES
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description char[]
getCharSet()
boolean
hasChar(char aChar)
Checks for char.static CharSet
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CharSet[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ASCII
public static final CharSet ASCII
-
ALPHABETIC
public static final CharSet ALPHABETIC
-
UPPER_CASE
public static final CharSet UPPER_CASE
-
LOWER_CASE
public static final CharSet LOWER_CASE
-
ALPHANUMERIC
public static final CharSet ALPHANUMERIC
-
NUMERIC
public static final CharSet NUMERIC
-
ENCODED_AS_NUMBER
public static final CharSet ENCODED_AS_NUMBER
No prefixing zeros allowed when encoding a value to be stored by a (JSON) number variable.
-
BINARY
public static final CharSet BINARY
-
HEXADECIMAL
public static final CharSet HEXADECIMAL
-
BASE64
public static final CharSet BASE64
-
BASE64URL
public static final CharSet BASE64URL
-
ARABIC_BASE64
public static final CharSet ARABIC_BASE64
-
QUOTES
public static final CharSet QUOTES
-
WHITE_SPACES
public static final CharSet WHITE_SPACES
-
END_OF_LINE
public static final CharSet END_OF_LINE
-
LINE_BREAK_MARKERS
public static final CharSet LINE_BREAK_MARKERS
When formatting texts, those chars can be used to identify a possible suitable end of line (when seeking for a position to do a line-break).
-
OPENING_BRACES
public static final CharSet OPENING_BRACES
Characters representing opening braces.
-
CLOSING_BRACES
public static final CharSet CLOSING_BRACES
Characters representing closing braces.
-
SPACE_MARKERS
public static final CharSet SPACE_MARKERS
When formatting texts, those chars can be used to identify a space between two words.
-
REGEX_SPECIAL_CHARS
public static final CharSet REGEX_SPECIAL_CHARS
-
-
Method Detail
-
values
public static CharSet[] 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 (CharSet c : CharSet.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CharSet valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getCharSet
public char[] getCharSet()
- Specified by:
getCharSet
in interfaceorg.refcodes.mixin.CharSetAccessor
-
hasChar
public boolean hasChar(char aChar)
Checks for char.- Parameters:
aChar
- the char- Returns:
- true, if successful
-
-