- All Implemented Interfaces:
Serializable
,Comparable<CharSet>
,java.lang.constant.Constable
,org.refcodes.mixin.CharSetAccessor
Commonly used char sets.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
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 ConstantDescriptionCharacters representing closing braces.No prefixing zeros allowed when encoding a value as a number (e.g. int).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).Characters representing opening braces.When formatting texts, those chars can be used to identify a space between two words. -
Method Summary
Modifier and TypeMethodDescriptionchar[]
boolean
hasChar
(char aChar) Checks for char.static CharSet
Returns the charset which's name matches the provided name, ignoring the case and the underscore ("_").static CharSet
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 Details
-
ASCII
-
ASCII_SPECIAL
-
ALPHABETIC
-
UPPER_CASE
-
LOWER_CASE
-
ALPHANUMERIC
-
NUMERIC
-
ENCODED_AS_NUMBER
No prefixing zeros allowed when encoding a value as a number (e.g. int). -
BINARY
-
OCTAL
-
DECIMAL
-
HEXADECIMAL
-
BASE64
-
BASE64URL
-
ARABIC_BASE64
-
QUOTES
-
WHITE_SPACES
-
ESCAPE_SEQUENCES
-
END_OF_LINE
-
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
Characters representing opening braces. -
CLOSING_BRACES
Characters representing closing braces. -
SPACE_MARKERS
When formatting texts, those chars can be used to identify a space between two words. -
REGEX_SPECIAL_CHARS
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
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
-
toCharset
Returns the charset which's name matches the provided name, ignoring the case and the underscore ("_").- Parameters:
aCharsetName
- The name of the charset.- Returns:
- The according
CharSet
or null if none matched.
-