public interface DataStateStore
DataState under an index.| Modifier and Type | Field and Description |
|---|---|
static DataState |
EMPTY_IMMUTABLE_STATE
Empty states that is immutable, i.e.
|
static int |
EMPTY_STATE_INDEX |
static java.lang.Integer |
NO_ENTRY |
static int |
START_INDEX |
| Modifier and Type | Method and Description |
|---|---|
DataState |
get(int index)
Returns the
DataState that is stored under the specified index. |
int |
putIfAbsent(DataState state)
Stores the
DataState and returns the index that it is stored under. |
int |
size() |
static final int START_INDEX
static final int EMPTY_STATE_INDEX
static final java.lang.Integer NO_ENTRY
static final DataState EMPTY_IMMUTABLE_STATE
UnsupportedOperationException.DataState get(int index)
DataState that is stored under the specified index.index - DataState or NULL, if there is noneint putIfAbsent(DataState state)
DataState and returns the index that it is stored under.state - int size()
DataState in this store