public enum TimerPosition extends java.lang.Enum<TimerPosition>
Timer.| Enum Constant and Description |
|---|
BEGINNING
Override the default and force to beginning of a method / constructor.
|
BOTH
Override the default and force to beginning and end of a
method / constructor.
|
DEFAULT
Use the default position.
|
END
Override the default and force to end of a method / constructor.
|
| Modifier and Type | Field and Description |
|---|---|
private boolean |
beginning
Stores if this constant marks the beginning.
|
private boolean |
end
Stores if this constant marks the end.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isBeginning()
Returns if this constant marks the beginning.
|
boolean |
isEnd()
Returns if this constant marks the end.
|
static TimerPosition |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TimerPosition[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TimerPosition DEFAULT
public static final TimerPosition BEGINNING
public static final TimerPosition END
public static final TimerPosition BOTH
private boolean beginning
private boolean end
public static TimerPosition[] values()
for (TimerPosition c : TimerPosition.values()) System.out.println(c);
public static TimerPosition 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 isBeginning()
true if it marks the beginning, false
elsepublic boolean isEnd()
true if it marks the end, false
else