Enum Class GuardEnum
- All Implemented Interfaces:
Serializable
,Comparable<GuardEnum>
,Constable
Enum for all build-in guards.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionTimer guard.Timer-withinmax guard.While-guard. -
Method Summary
Modifier and TypeMethodDescriptiongetName()
Returns name.Returns the namespace name.static boolean
Returns true for the while-guardstatic GuardEnum
Returns the enum constant of this class with the specified name.static GuardEnum[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TIMER_WITHIN
Timer guard. -
TIMER_WITHINMAX
Timer-withinmax guard. -
WHILE_GUARD
While-guard.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getNamespace
Returns the namespace name.- Returns:
- namespace name
-
getName
Returns name.- Returns:
- short name
-
isWhile
Returns true for the while-guard- Parameters:
namespace
- namespacename
- name- Returns:
- indicator
-