public abstract class StateTable extends Object
StateNamespace and StateTag<?> to a State instance.| Constructor and Description |
|---|
StateTable() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract StateTag.StateBinder |
binderForNamespace(StateNamespace namespace)
Provide the
StateBinder to use for creating Storage instances
in the specified namespace. |
protected void |
clear() |
void |
clearNamespace(StateNamespace namespace) |
<StateT extends State> |
get(StateNamespace namespace,
StateTag<StateT> tag) |
Set<StateNamespace> |
getNamespacesInUse() |
Map<StateTag<?>,State> |
getTagsInUse(StateNamespace namespace) |
boolean |
isNamespaceInUse(StateNamespace namespace) |
Iterable<State> |
values() |
public <StateT extends State> StateT get(StateNamespace namespace, StateTag<StateT> tag)
public void clearNamespace(StateNamespace namespace)
protected void clear()
public boolean isNamespaceInUse(StateNamespace namespace)
public Map<StateTag<?>,State> getTagsInUse(StateNamespace namespace)
public Set<StateNamespace> getNamespacesInUse()
protected abstract StateTag.StateBinder binderForNamespace(StateNamespace namespace)
StateBinder to use for creating Storage instances
in the specified namespace.