- All Implemented Interfaces:
Serializable
,Comparable<Delimiter>
,Constable
,org.refcodes.mixin.CharAccessor
Commonly used characters when working with separated values or properties and
the like making use of text separator characters .
-
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.CharAccessor
org.refcodes.mixin.CharAccessor.CharBuilder<B extends org.refcodes.mixin.CharAccessor.CharBuilder<B>>, org.refcodes.mixin.CharAccessor.CharMutator, org.refcodes.mixin.CharAccessor.CharProperty
-
Enum Constant Summary
Enum ConstantDescriptionThe delimiter used to separate the parameters of an ANSI Escape-Sequence, e.g. the parameters "0", "1" and ""4" of the sequence "<ESC>[0;1;4m
".The delimiter used to separate the leading Escape-Code <ESC> of an ANSI Escape-Sequence from the succeeding portion, e.g. "[" separates <ESC> from "[0;1;4m" of the sequence "<ESC>[0;1;4m
".When concatenating the elements of an array to a single line, then per default this delimiter us used (":").The delimiter char separating a cipher UID from an encrypted text (":").The delimiter separating properties (key/value-pairs/tuples) from each other (";").The delimiter separating a cookie's tuple name from its value ("=").The delimiter char separating correlation IDs from each other (":").Default delimiter for CSV (comma separated values) lines; this is not necessarily a comma (","), moreover we choose to use the semicolon ";".The path delimiter for all descendants of good old MS-DOS.Delimiter separating a base filename from its extension, e.g. given "README.md", "README" is the base filename, the dot (".") is the delimiter and "md" is the filename extension.The delimiter in HTTP headers for multiple elements in a single header field, e.g. in the ACCEPT Header-Field separating multiple media type declarations from each other (",").A number (index) is prefixed by a hash ("#").The separator separating an inner class from a class in a fully qualified class name ("$").IPv4 delimiter as of the CIDR notation (see "https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing#CIDR_notation").IPv6 delimiter as of the CIDR notation (see "https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing#CIDR_notation").Separates the JAR file from the therein addressed resource ("!").When concatenating elements in a word written in kebab case (e.g.When concatenating the elements of a list to a single line, then per default this delimiter us used (",").The delimiter separating a HTTP header's media type declaration from the (optional) parameters and the parameters from each other (";").The separator separating a method name from a class name ("#").A hierarchy such as a package structure often is represented by dot "."The separator separating the packages from a package hierarchy (".").The default path delimiter for all kinds of paths ("/"); the delimiter is used to compose address locators for resources from inside JAR files or for *nix alike operating systems.The delimiter separating a key from a value of a key/value property ("=").When concatenating elements in a word written in snake case (e.g.The system's file path delimiter as used by the underlying operating system.User-info representing a credentials in an URL are separated be a colon (":").A fragment is the hash ("#") separated suffix of an URL.When separating a host from a port in an URL, then per definition this delimiter is used (":").The delimiter char separating the locator part from a query string of an URL ("?").User-info (e.g. credentials) in an URL are separated be an ampersand ("@").The delimiter char separating one web field from another in a query string of an URL ("&"). -
Method Summary
-
Enum Constant Details
-
ANSI_ESCAPE_PARAMETER
The delimiter used to separate the parameters of an ANSI Escape-Sequence, e.g. the parameters "0", "1" and ""4" of the sequence "<ESC>[0;1;4m
". -
ANSI_ESCAPE_PREFIX
The delimiter used to separate the leading Escape-Code <ESC> of an ANSI Escape-Sequence from the succeeding portion, e.g. "[" separates <ESC> from "[0;1;4m" of the sequence "<ESC>[0;1;4m
". -
INDEX
A number (index) is prefixed by a hash ("#"). -
URL_FRAGMENT
A fragment is the hash ("#") separated suffix of an URL. -
URL_CREDENTIALS
User-info representing a credentials in an URL are separated be a colon (":"). -
URL_USER_INFO
User-info (e.g. credentials) in an URL are separated be an ampersand ("@"). -
PATH
The default path delimiter for all kinds of paths ("/"); the delimiter is used to compose address locators for resources from inside JAR files or for *nix alike operating systems. To get the operating system's file separator useSystemProperty.FILE_SEPARATOR
. -
DOS_PATH
The path delimiter for all descendants of good old MS-DOS. -
SYSTEM_FILE_PATH
The system's file path delimiter as used by the underlying operating system. -
CSV
Default delimiter for CSV (comma separated values) lines; this is not necessarily a comma (","), moreover we choose to use the semicolon ";". -
ARRAY
When concatenating the elements of an array to a single line, then per default this delimiter us used (":"). -
IP_V4
IPv4 delimiter as of the CIDR notation (see "https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing#CIDR_notation"). -
IP_V6
IPv6 delimiter as of the CIDR notation (see "https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing#CIDR_notation"). -
URL_PORT
When separating a host from a port in an URL, then per definition this delimiter is used (":"). -
LIST
When concatenating the elements of a list to a single line, then per default this delimiter us used (","). -
SNAKE_CASE
When concatenating elements in a word written in snake case (e.g. "FIRST_LAST" for concatenating "first" with "last"), then this delimiter may be your choice ("_").- See Also:
-
- "https://en.wikipedia.org/wiki/Snake_case"
-
KEBAB_CASE
When concatenating elements in a word written in kebab case (e.g. "FIRST-LAST" for concatenating "first" with "last"), then this delimiter may be your choice ("-").- See Also:
-
- "https://en.wikipedia.org/wiki/Kebab_case"
-
NAMESPACE
A hierarchy such as a package structure often is represented by dot "." separated hierarchy "levels", e.g. "org.refcodes.data": The top level is "org", the next level is "refcodes", the fully qualified level representation would be "org.refcodes". The fully qualified level representation for the level "data" would be "org.refcodes.data". Got it? ;-) -
COOKIE_PROPERTIES
The delimiter separating properties (key/value-pairs/tuples) from each other (";"). -
COOKIE_TUPEL
The delimiter separating a cookie's tuple name from its value ("="). -
PROPERTY
The delimiter separating a key from a value of a key/value property ("="). -
JAR_URL_RESOURCE
Separates the JAR file from the therein addressed resource ("!"). -
METHOD_NAME
The separator separating a method name from a class name ("#"). -
INNER_CLASS
The separator separating an inner class from a class in a fully qualified class name ("$"). -
PACKAGE_HIERARCHY
The separator separating the packages from a package hierarchy ("."). -
CIPHER_UID
The delimiter char separating a cipher UID from an encrypted text (":"). -
CORRELATION_ID
The delimiter char separating correlation IDs from each other (":"). -
WEB_FIELD
The delimiter char separating one web field from another in a query string of an URL ("&"). -
URL_QUERY
The delimiter char separating the locator part from a query string of an URL ("?"). -
MEDIA_TYPE_PARAMETERS
The delimiter separating a HTTP header's media type declaration from the (optional) parameters and the parameters from each other (";"). -
HTTP_HEADER_ELEMENTS
The delimiter in HTTP headers for multiple elements in a single header field, e.g. in the ACCEPT Header-Field separating multiple media type declarations from each other (","). -
FILENAME_EXTENSION
Delimiter separating a base filename from its extension, e.g. given "README.md", "README" is the base filename, the dot (".") is the delimiter and "md" is the filename extension.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getChar
public char getChar()- Specified by:
getChar
in interfaceorg.refcodes.mixin.CharAccessor
-