Package io.smallrye.common.version
Enum AbstractVersionIterator.TokenType
- java.lang.Object
-
- java.lang.Enum<AbstractVersionIterator.TokenType>
-
- io.smallrye.common.version.AbstractVersionIterator.TokenType
-
- All Implemented Interfaces:
Serializable,Comparable<AbstractVersionIterator.TokenType>
- Enclosing class:
- AbstractVersionIterator
protected static enum AbstractVersionIterator.TokenType extends Enum<AbstractVersionIterator.TokenType>
The current state of iteration.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INITIALINVALIDPART_ALPHAPART_NUMBERSEPSEP_EMPTY
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AbstractVersionIterator.TokenTypevalueOf(String name)Returns the enum constant of this type with the specified name.static AbstractVersionIterator.TokenType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INITIAL
public static final AbstractVersionIterator.TokenType INITIAL
-
PART_ALPHA
public static final AbstractVersionIterator.TokenType PART_ALPHA
-
PART_NUMBER
public static final AbstractVersionIterator.TokenType PART_NUMBER
-
SEP_EMPTY
public static final AbstractVersionIterator.TokenType SEP_EMPTY
-
SEP
public static final AbstractVersionIterator.TokenType SEP
-
INVALID
public static final AbstractVersionIterator.TokenType INVALID
-
-
Method Detail
-
values
public static AbstractVersionIterator.TokenType[] 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 (AbstractVersionIterator.TokenType c : AbstractVersionIterator.TokenType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AbstractVersionIterator.TokenType valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-