@Deprecated public class MemoryDataContainer extends MemoryDataView implements DataContainer
DataContainer that can be instantiated
for any use. This is the primary implementation of any DataView that
is used throughout both SpongeAPI and Sponge implementation.DataView.SafetyModemap| Constructor and Description |
|---|
MemoryDataContainer()
Deprecated.
|
MemoryDataContainer(DataView.SafetyMode safety)
|
| Modifier and Type | Method and Description |
|---|---|
DataContainer |
getContainer()
Deprecated.
Gets the parent container of this DataView.
|
Optional<DataView> |
getParent()
Deprecated.
Gets the parent
DataView of this view. |
DataContainer |
remove(DataQuery path)
Deprecated.
Removes the data associated to the given path relative to this
DataView's path. |
DataContainer |
set(DataQuery path,
Object value)
Deprecated.
Sets the given Object value according to the given path relative to
this
DataView's path. |
<E> DataContainer |
set(Key<? extends BaseValue<E>> key,
E value)
Deprecated.
|
contains, contains, copy, copy, createView, createView, equals, get, getBoolean, getBooleanList, getByte, getByteList, getCatalogType, getCatalogTypeList, getCharacterList, getCurrentPath, getDouble, getDoubleList, getFloat, getFloatList, getInt, getIntegerList, getKeys, getList, getLong, getLongList, getMap, getMapList, getName, getObject, getObjectList, getSafetyMode, getSerializable, getSerializableList, getShort, getShortList, getString, getStringList, getValues, getView, getViewList, hashCode, isEmpty, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitcreateNew, createNewcontains, contains, contains, contains, copy, copy, createView, createView, get, getBoolean, getBooleanList, getByte, getByteList, getCatalogType, getCatalogTypeList, getCharacterList, getCurrentPath, getDouble, getDoubleList, getFloat, getFloatList, getInt, getIntegerList, getKeys, getList, getLong, getLongList, getMap, getMapList, getName, getObject, getObjectList, getSafetyMode, getSerializable, getSerializableList, getShort, getShortList, getString, getStringList, getValues, getView, getViewList, isEmpty@Deprecated public MemoryDataContainer()
DataContainer.createNew()MemoryDataContainer with a default
DataView.SafetyMode of
DataView.SafetyMode.ALL_DATA_CLONED.@Deprecated public MemoryDataContainer(DataView.SafetyMode safety)
MemoryDataContainer with the provided
DataView.SafetyMode.safety - The safety mode to useDataView.SafetyModepublic Optional<DataView> getParent()
DataViewDataView of this view. The parent directly
contains this view according to the DataView.getCurrentPath().
For any DataContainer, this will return an absent parent.
getParent in interface DataViewgetParent in class MemoryDataViewpublic final DataContainer getContainer()
DataViewEvery DataView will always have a DataContainer.
For any DataContainer, this will return itself.
getContainer in interface DataViewgetContainer in class MemoryDataViewpublic DataContainer set(DataQuery path, Object value)
DataViewDataView's path.set in interface DataContainerset in interface DataViewset in class MemoryDataViewpath - The path of the object to setvalue - The value of the datapublic <E> DataContainer set(Key<? extends BaseValue<E>> key, E value)
DataViewset in interface DataContainerset in interface DataViewset in class MemoryDataViewE - The type of valuekey - The key of the value to setvalue - The value of the datapublic DataContainer remove(DataQuery path)
DataViewDataView's path.
Path can not be empty, to remove this DataView, call
the associated parent to remove this views name.
remove in interface DataContainerremove in interface DataViewremove in class MemoryDataViewpath - The path of data to remove