public class DataSet extends Object implements DataHolder
| Modifier and Type | Field and Description |
|---|---|
protected HashMap<DataKey<?>,Object> |
dataSet |
| Constructor and Description |
|---|
DataSet() |
DataSet(DataHolder other) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(DataKey<?> key) |
<T> T |
get(DataKey<T> key) |
Map<DataKey<?>,Object> |
getAll() |
Collection<DataKey<?>> |
getKeys() |
static DataSet |
merge(DataHolder... dataHolders) |
DataHolder |
toImmutable() |
MutableDataHolder |
toMutable() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitkeySetpublic DataSet()
public DataSet(DataHolder other)
public Map<DataKey<?>,Object> getAll()
getAll in interface DataHolderpublic Collection<DataKey<?>> getKeys()
getKeys in interface DataHolderpublic boolean contains(DataKey<?> key)
contains in interface DataHolderpublic <T> T get(DataKey<T> key)
get in interface DataHolderpublic static DataSet merge(DataHolder... dataHolders)
public MutableDataHolder toMutable()
toMutable in interface DataHolderpublic DataHolder toImmutable()
toImmutable in interface DataHolderCopyright © 2019. All rights reserved.