public class MutableScopedDataSet extends MutableDataSet
| Modifier and Type | Field and Description |
|---|---|
protected DataHolder |
parent |
| Constructor and Description |
|---|
MutableScopedDataSet(DataHolder parent) |
MutableScopedDataSet(DataHolder parent,
MutableDataHolder other) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(DataKey key) |
<T> T |
get(DataKey<T> key)
Get the given key, if it does not exist then use the key's factory to create a new value and put it into the collection
so that the following get of the same key will find a value
|
Map<DataKey,Object> |
getAll() |
DataHolder |
getParent() |
Collection<DataKey> |
keySet() |
clear, getOrCompute, merge, remove, set, setAll, setFrom, setIn, toImmutable, toMutableprotected final DataHolder parent
public MutableScopedDataSet(DataHolder parent)
public MutableScopedDataSet(DataHolder parent, MutableDataHolder other)
public DataHolder getParent()
public Map<DataKey,Object> getAll()
getAll in interface DataHoldergetAll in class DataSetpublic Collection<DataKey> keySet()
keySet in interface DataHolderkeySet in class DataSetpublic boolean contains(DataKey key)
contains in interface DataHoldercontains in class DataSetpublic <T> T get(DataKey<T> key)
MutableDataHolderget in interface DataHolderget in interface MutableDataHolderget in class MutableDataSetkey - data keyCopyright © 2019. All rights reserved.