Package com.github.zafarkhaja.semver
Enum VersionParser.CharType
- All Implemented Interfaces:
Stream.ElementType<Character>
,Serializable
,Comparable<VersionParser.CharType>
- Enclosing class:
VersionParser
static enum VersionParser.CharType
extends Enum<VersionParser.CharType>
implements Stream.ElementType<Character>
Valid character types.
-
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static VersionParser.CharType
forCharacter
(Character chr) Gets the type for a given character.static VersionParser.CharType
Returns the enum constant of this type with the specified name.static VersionParser.CharType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface com.github.zafarkhaja.semver.util.Stream.ElementType
isMatchedBy
-
Enum Constant Details
-
DIGIT
-
LETTER
-
DOT
-
HYPHEN
-
PLUS
-
EOI
-
ILLEGAL
-
-
Constructor Details
-
CharType
private CharType()
-
-
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
-
forCharacter
Gets the type for a given character.- Parameters:
chr
- the character to get the type for- Returns:
- the type of the specified character
-