Package net.anwiba.commons.version
Enum VersionParser.ParseState
- java.lang.Object
-
- java.lang.Enum<VersionParser.ParseState>
-
- net.anwiba.commons.version.VersionParser.ParseState
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<VersionParser.ParseState>
- Enclosing class:
- VersionParser
public static enum VersionParser.ParseState extends java.lang.Enum<VersionParser.ParseState>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static VersionParser.ParseStatevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static VersionParser.ParseState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNDEFIND
public static final VersionParser.ParseState UNDEFIND
-
MAJOR
public static final VersionParser.ParseState MAJOR
-
MINOR
public static final VersionParser.ParseState MINOR
-
RELEASESTATE
public static final VersionParser.ParseState RELEASESTATE
-
STEP
public static final VersionParser.ParseState STEP
-
PRODUCTSTATE
public static final VersionParser.ParseState PRODUCTSTATE
-
COUNT
public static final VersionParser.ParseState COUNT
-
YEAR
public static final VersionParser.ParseState YEAR
-
MONTH
public static final VersionParser.ParseState MONTH
-
DAY
public static final VersionParser.ParseState DAY
-
HOUR
public static final VersionParser.ParseState HOUR
-
MIN
public static final VersionParser.ParseState MIN
-
-
Method Detail
-
values
public static VersionParser.ParseState[] 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 (VersionParser.ParseState c : VersionParser.ParseState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static VersionParser.ParseState valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-