Enum VersionSpecification.Type
- java.lang.Object
-
- java.lang.Enum<VersionSpecification.Type>
-
- de.mnl.osgi.bnd.repository.maven.idxmvn.VersionSpecification.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<VersionSpecification.Type>
- Enclosing class:
- VersionSpecification
public static enum VersionSpecification.Type extends Enum<VersionSpecification.Type>
The Enum Type.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EXCLUDE
FORCED_VERSIONS
VERSIONS
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isKeyword(String value)
Checks if is keyword.static VersionSpecification.Type
of(String value)
Of.static VersionSpecification.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static VersionSpecification.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VERSIONS
public static final VersionSpecification.Type VERSIONS
-
FORCED_VERSIONS
public static final VersionSpecification.Type FORCED_VERSIONS
-
EXCLUDE
public static final VersionSpecification.Type EXCLUDE
-
-
Method Detail
-
values
public static VersionSpecification.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 (VersionSpecification.Type c : VersionSpecification.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 VersionSpecification.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 nameNullPointerException
- if the argument is null
-
isKeyword
public static boolean isKeyword(String value)
Checks if is keyword.- Parameters:
value
- the value- Returns:
- true, if is keyword
-
of
public static VersionSpecification.Type of(String value)
Of.- Parameters:
value
- the value- Returns:
- the type
-
-