Modifier and Type | Class and Description |
---|---|
static class |
StateManager.Builder<O,S extends State<S>> |
static interface |
StateManager.Factory<O,S extends State<S>,A extends AbstractState<O,S>> |
Modifier and Type | Field and Description |
---|---|
private O |
owner |
private ImmutableSortedMap<String,Property<?>> |
properties |
private ImmutableList<S> |
states |
private static Pattern |
VALID_NAME_PATTERN |
Modifier | Constructor and Description |
---|---|
protected |
StateManager(O owner,
StateManager.Factory<O,S,A> factory,
Map<String,Property<?>> namedProperties) |
Modifier and Type | Method and Description |
---|---|
S |
getDefaultState() |
O |
getOwner() |
Collection<Property<?>> |
getProperties() |
Property<?> |
getProperty(String name) |
ImmutableList<S> |
getStates() |
String |
toString() |
private static final Pattern VALID_NAME_PATTERN
private final O owner
private final ImmutableSortedMap<String,Property<?>> properties
private final ImmutableList<S extends State<S>> states
public ImmutableList<S> getStates()
public S getDefaultState()
public O getOwner()
public Collection<Property<?>> getProperties()