public abstract class AbstractImmutableMappedData<K,V,I extends ImmutableMappedData<K,V,I,M>,M extends MappedData<K,V,M,I>> extends AbstractImmutableSingleData<Map<K,V>,I,M> implements ImmutableMappedData<K,V,I,M>
defaultValue, usedKey, value| Modifier | Constructor and Description |
|---|---|
protected |
AbstractImmutableMappedData(Key<MapValue<K,V>> usedKey,
Map<K,V> value) |
protected |
AbstractImmutableMappedData(Key<MapValue<K,V>> usedKey,
Map<K,V> value,
Map<K,V> defaultValue) |
protected |
AbstractImmutableMappedData(Map<K,V> value,
Key<? extends BaseValue<Map<K,V>>> usedKey)
Deprecated.
Use
AbstractImmutableMappedData(Key, Map, Map) instead. |
| Modifier and Type | Method and Description |
|---|---|
Optional<V> |
get(K key)
Gets the
value for the provided key, if available. |
Set<K> |
getMapKeys()
Gets a
Set of keys available in this manipulator. |
ImmutableMapValue<K,V> |
getMapValue()
Gets the
ImmutableMapValue of this manipulator. |
protected ImmutableMapValue<K,V> |
getValueGetter() |
asMutable, equals, get, getKeys, getValue, hashCode, registerGetters, supportscopy, fillContainer, getValue, getValues, registerFieldGetter, registerKeyValue, toContainerclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitasMap, getMapValuesasMutable, copy, with, withgetContentVersion, toContainer@Deprecated protected AbstractImmutableMappedData(Map<K,V> value, Key<? extends BaseValue<Map<K,V>>> usedKey)
AbstractImmutableMappedData(Key, Map, Map) instead.protected AbstractImmutableMappedData(Key<MapValue<K,V>> usedKey, Map<K,V> value)
protected final ImmutableMapValue<K,V> getValueGetter()
getValueGetter in class AbstractImmutableSingleData<Map<K,V>,I extends ImmutableMappedData<K,V,I,M>,M extends MappedData<K,V,M,I>>public Optional<V> get(K key)
ImmutableMappedDatavalue for the provided key, if available.get in interface ImmutableMappedData<K,V,I extends ImmutableMappedData<K,V,I,M>,M extends MappedData<K,V,M,I>>key - The keyMap.get(Object)public Set<K> getMapKeys()
ImmutableMappedDataSet of keys available in this manipulator.getMapKeys in interface ImmutableMappedData<K,V,I extends ImmutableMappedData<K,V,I,M>,M extends MappedData<K,V,M,I>>Map.keySet()public ImmutableMapValue<K,V> getMapValue()
ImmutableMappedDataImmutableMapValue of this manipulator.getMapValue in interface ImmutableMappedData<K,V,I extends ImmutableMappedData<K,V,I,M>,M extends MappedData<K,V,M,I>>