com.github.jknack.semver
Enum Semver.Type
java.lang.Object
java.lang.Enum<Semver.Type>
com.github.jknack.semver.Semver.Type
- All Implemented Interfaces:
- Serializable, Comparable<Semver.Type>
- Enclosing class:
- Semver
public static enum Semver.Type
- extends Enum<Semver.Type>
|
Method Summary |
static Semver.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Semver.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
ANY
public static final Semver.Type ANY
AND
public static final Semver.Type AND
OR
public static final Semver.Type OR
RANGE
public static final Semver.Type RANGE
TILDE
public static final Semver.Type TILDE
X_RANGE
public static final Semver.Type X_RANGE
EQ
public static final Semver.Type EQ
GT
public static final Semver.Type GT
GT_EQ
public static final Semver.Type GT_EQ
LT
public static final Semver.Type LT
LT_EQ
public static final Semver.Type LT_EQ
URL
public static final Semver.Type URL
STATIC
public static final Semver.Type STATIC
LATEST
public static final Semver.Type LATEST
values
public static Semver.Type[] 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 (Semver.Type c : Semver.Type.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Semver.Type 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 name
NullPointerException - if the argument is null
Copyright © 2013. All Rights Reserved.