public enum GuardedDirection extends java.lang.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(java.lang.Number value,
java.lang.Number limit)
Returns true if the threshold guard is passed (and the threshold guard should fire).
|
static GuardedDirection |
valueOf(java.lang.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(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic boolean brokeThrough(java.lang.Number value,
java.lang.Number limit)
value - limit - Copyright © 2010-2020 anotheria.net. All Rights Reserved.