K - The type of key in the mapV - The type of value in the mapM - The type of DataManipulatorI - The type of ImmutableDataManipulatorpublic abstract class AbstractMappedData<K,V,M extends MappedData<K,V,M,I>,I extends ImmutableMappedData<K,V,I,M>> extends AbstractSingleData<Map<K,V>,M,I> implements MappedData<K,V,M,I>
ListDatas provided by the API.defaultValue, usedKey, value| Modifier | Constructor and Description |
|---|---|
protected |
AbstractMappedData(Key<MapValue<K,V>> usedKey,
Map<K,V> value) |
protected |
AbstractMappedData(Key<MapValue<K,V>> usedKey,
Map<K,V> value,
Map<K,V> defaultValue) |
protected |
AbstractMappedData(Map<K,V> value,
Key<? extends BaseValue<Map<K,V>>> usedKey)
Deprecated.
Use
AbstractMappedData(Key, Map) instead. |
| Modifier and Type | Method and Description |
|---|---|
Map<K,V> |
asMap()
Gets this manipulator as a
Map. |
boolean |
equals(Object obj) |
MapValue<K,V> |
getMapValue()
Gets the
MapValue of this manipulator. |
protected Map<K,V> |
getValue()
A simple getter for usage with a
Supplier for
the AbstractData.registerFieldGetter(Key, Supplier) method. |
protected MapValue<K,V> |
getValueGetter()
Gets the
Value as a method since this manipulator only focuses
on a single value. |
int |
hashCode() |
protected M |
setValue(Map<K,V> value)
A simple setter for usage with a
Consumer for
the AbstractData.registerFieldSetter(Key, Consumer) method. |
asImmutable, fillContainer, get, registerGettersAndSetters, supportsgetKeys, getValue, getValues, registerFieldGetter, registerFieldSetter, registerKeyValue, set, toContainer, transformclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitget, getMapKeys, getMapValues, put, putAll, removeasImmutable, copy, fill, fill, from, set, set, set, set, transformgetContentVersion, toContainer@Deprecated protected AbstractMappedData(Map<K,V> value, Key<? extends BaseValue<Map<K,V>>> usedKey)
AbstractMappedData(Key, Map) instead.protected MapValue<K,V> getValueGetter()
AbstractSingleDataValue as a method since this manipulator only focuses
on a single value.getValueGetter in class AbstractSingleData<Map<K,V>,M extends MappedData<K,V,M,I>,I extends ImmutableMappedData<K,V,I,M>>protected Map<K,V> getValue()
AbstractSingleDataSupplier for
the AbstractData.registerFieldGetter(Key, Supplier) method.protected M setValue(Map<K,V> value)
AbstractSingleDataConsumer for
the AbstractData.registerFieldSetter(Key, Consumer) method.public int hashCode()
public boolean equals(Object obj)
public MapValue<K,V> getMapValue()
MappedDataMapValue of this manipulator.getMapValue in interface MappedData<K,V,M extends MappedData<K,V,M,I>,I extends ImmutableMappedData<K,V,I,M>>