public enum GuardedDirection extends Enum<GuardedDirection>
| Enum Constant and Description |
|---|
DOWN
The new value is lower than the guarded value.
|
UP
The new value is higher than the guarded value.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
brokeThrough(Number value,
Number limit)
Returns true if the threshold guard is passed (and the threshold guard should fire).
|
static GuardedDirection |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GuardedDirection[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GuardedDirection DOWN
public static final GuardedDirection UP
public static GuardedDirection[] values()
for (GuardedDirection c : GuardedDirection.values()) System.out.println(c);
public static GuardedDirection valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2010-2017 anotheria.net. All Rights Reserved.