Enum RulesToolkit.EventAvailability
- java.lang.Object
-
- java.lang.Enum<RulesToolkit.EventAvailability>
-
- org.openjdk.jmc.flightrecorder.rules.util.RulesToolkit.EventAvailability
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<RulesToolkit.EventAvailability>
- Enclosing class:
- RulesToolkit
public static enum RulesToolkit.EventAvailability extends java.lang.Enum<RulesToolkit.EventAvailability>
Knowledge about the state of affairs of an event type in an IItemCollection.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AVAILABLE
The type has events available in the collection.DISABLED
The type was actively disabled in the collection.ENABLED
The type was actively enabled in the collection.NONE
The type is known in the collection, but no events were found.UNKNOWN
The type is unknown in the collection.
-
Field Summary
Fields Modifier and Type Field Description private int
availabilityScore
-
Constructor Summary
Constructors Modifier Constructor Description private
EventAvailability(int availabilityScore)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isLessAvailableThan(RulesToolkit.EventAvailability availability)
Returns true if this EventAvailability is less available than the provided one.static RulesToolkit.EventAvailability
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static RulesToolkit.EventAvailability[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AVAILABLE
public static final RulesToolkit.EventAvailability AVAILABLE
The type has events available in the collection.
-
ENABLED
public static final RulesToolkit.EventAvailability ENABLED
The type was actively enabled in the collection.
-
DISABLED
public static final RulesToolkit.EventAvailability DISABLED
The type was actively disabled in the collection.
-
NONE
public static final RulesToolkit.EventAvailability NONE
The type is known in the collection, but no events were found.
-
UNKNOWN
public static final RulesToolkit.EventAvailability UNKNOWN
The type is unknown in the collection.
-
-
Method Detail
-
values
public static RulesToolkit.EventAvailability[] 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 (RulesToolkit.EventAvailability c : RulesToolkit.EventAvailability.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RulesToolkit.EventAvailability 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
-
isLessAvailableThan
public boolean isLessAvailableThan(RulesToolkit.EventAvailability availability)
Returns true if this EventAvailability is less available than the provided one.- Parameters:
availability
- theRulesToolkit.EventAvailability
to compare to.- Returns:
- true if this EventAvailability is less available than the provided one, false otherwise.
-
-