Package org.jboss.as.version
Enum Stability
- java.lang.Object
-
- java.lang.Enum<Stability>
-
- org.jboss.as.version.Stability
-
- All Implemented Interfaces:
Serializable,Comparable<Stability>
public enum Stability extends Enum<Stability>
Enumeration of stability levels.- Author:
- Paul Ferraro
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COMMUNITYDEFAULTEXPERIMENTALPREVIEW
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanenables(Stability stability)Indicates whether this stability enables the specified stability level.static StabilityfromString(String value)static <F> Map<Stability,F>map(Function<Stability,F> features)Returns a complete map of a feature per stability level.StringtoString()static StabilityvalueOf(String name)Returns the enum constant of this type with the specified name.static Stability[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Method Detail
-
values
public static Stability[] 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 (Stability c : Stability.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Stability 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
-
enables
public boolean enables(Stability stability)
Indicates whether this stability enables the specified stability level.- Parameters:
stability- a stability level- Returns:
- true, if this stability level enables the specified stability level, false otherwise.
-
map
public static <F> Map<Stability,F> map(Function<Stability,F> features)
Returns a complete map of a feature per stability level.- Type Parameters:
F- the feature type- Parameters:
features- a function returning the feature of a given stability level- Returns:
- a full mapping of feature per stability level
-
-