public enum BotLifecyclePhase extends java.lang.Enum<BotLifecyclePhase>
| Enum Constant and Description |
|---|
ACTIVE |
DOWN |
SHUTTING_DOWN |
STARTING_UP |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isActive() |
boolean |
isDown() |
boolean |
isShuttingDown() |
boolean |
isStartingUp() |
static BotLifecyclePhase |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BotLifecyclePhase[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BotLifecyclePhase DOWN
public static final BotLifecyclePhase STARTING_UP
public static final BotLifecyclePhase ACTIVE
public static final BotLifecyclePhase SHUTTING_DOWN
public static BotLifecyclePhase[] values()
for (BotLifecyclePhase c : BotLifecyclePhase.values()) System.out.println(c);
public static BotLifecyclePhase 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 isDown()
public boolean isStartingUp()
public boolean isActive()
public boolean isShuttingDown()
Copyright © 2018. All Rights Reserved.