public enum StateView extends Enum<StateView>
Enum Constant and Description |
---|
ACTIVE |
ARCHIVED |
COMPLETED |
DISABLED |
INACTIVE |
INTERRUPTED |
PENDING |
PENDING_INACTIVE |
Modifier and Type | Method and Description |
---|---|
static StateView |
find(com.edorasware.commons.core.entity.State state)
Finds a new state view instance by the given state.
|
com.edorasware.commons.core.entity.State |
getState() |
com.google.common.collect.ImmutableList<ViewName> |
getViews() |
static StateView |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StateView[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StateView ACTIVE
public static final StateView INACTIVE
public static final StateView PENDING
public static final StateView PENDING_INACTIVE
public static final StateView ARCHIVED
public static final StateView COMPLETED
public static final StateView INTERRUPTED
public static final StateView DISABLED
public static StateView[] values()
for (StateView c : StateView.values()) System.out.println(c);
public static StateView 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 nullpublic static StateView find(com.edorasware.commons.core.entity.State state)
state
- the state of the state view to createIllegalArgumentException
- if the id is not knownpublic com.edorasware.commons.core.entity.State getState()
public com.google.common.collect.ImmutableList<ViewName> getViews()
Copyright © 2010 - 2017 edorasware ag. All Rights Reserved.