Enum Class StringConsts
- All Implemented Interfaces:
Serializable
,Comparable<StringConsts>
,Constable
Class to contain constants and methods related to strings.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
allUnicodeChars
(Function<Character, Boolean> filter) Return all unicode chars matching a filter.static String
Return a string consisting of all the code points in aCharacter.UnicodeBlock
.static StringConsts
Returns the enum constant of this class with the specified name.static StringConsts[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Field Details
-
codePoints
public static final int codePointsThe number of code points in unicode. Code points are zero-indexed, so the biggest code point is this minus 1- See Also:
-
allUnicodeChars
String containing every single unicode code point. -
allDefinedChars
String containing all defined code points. -
allAsciiChars
List of all ASCII characters
-
-
Constructor Details
-
StringConsts
private StringConsts()
-
-
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
-
allUnicodeChars
-
codePointsOfBlock
Return a string consisting of all the code points in aCharacter.UnicodeBlock
.- Parameters:
block
- the UnicodeBlock to list the characters of.- Returns:
- a string consisting of all the code points.
-