K
- The type of key in the mapV
- The type of value in the mapM
- The type of DataManipulator
I
- The type of ImmutableDataManipulator
public 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>
ListData
s 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, supports
getKeys, getValue, getValues, registerFieldGetter, registerFieldSetter, registerKeyValue, set, toContainer, transform
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
get, getMapKeys, getMapValues, put, putAll, remove
asImmutable, copy, fill, fill, from, set, set, set, set, transform
getContentVersion, toContainer
@Deprecated protected AbstractMappedData(Map<K,V> value, Key<? extends BaseValue<Map<K,V>>> usedKey)
AbstractMappedData(Key, Map)
instead.protected MapValue<K,V> getValueGetter()
AbstractSingleData
Value
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()
AbstractSingleData
Supplier
for
the AbstractData.registerFieldGetter(Key, Supplier)
method.protected M setValue(Map<K,V> value)
AbstractSingleData
Consumer
for
the AbstractData.registerFieldSetter(Key, Consumer)
method.public int hashCode()
public boolean equals(Object obj)
public MapValue<K,V> getMapValue()
MappedData
MapValue
of this manipulator.getMapValue
in interface MappedData<K,V,M extends MappedData<K,V,M,I>,I extends ImmutableMappedData<K,V,I,M>>