public static enum AbstractListener.RegistrationHook extends java.lang.Enum<AbstractListener.RegistrationHook>
Enum Constant and Description |
---|
POST_REGISTER |
POST_UNREGISTER |
PRE_REGISTER |
PRE_UNREGISTER |
Modifier and Type | Method and Description |
---|---|
boolean |
add(AbstractListener listener,
java.lang.Runnable task) |
boolean |
remove(AbstractListener listener,
java.lang.Runnable task) |
java.lang.String |
toString() |
static AbstractListener.RegistrationHook |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AbstractListener.RegistrationHook[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AbstractListener.RegistrationHook PRE_REGISTER
public static final AbstractListener.RegistrationHook POST_REGISTER
public static final AbstractListener.RegistrationHook PRE_UNREGISTER
public static final AbstractListener.RegistrationHook POST_UNREGISTER
public static AbstractListener.RegistrationHook[] values()
for (AbstractListener.RegistrationHook c : AbstractListener.RegistrationHook.values()) System.out.println(c);
public static AbstractListener.RegistrationHook 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 add(AbstractListener listener, java.lang.Runnable task)
public boolean remove(AbstractListener listener, java.lang.Runnable task)
public java.lang.String toString()
toString
in class java.lang.Enum<AbstractListener.RegistrationHook>