Class AbstractWritableMapImpl<K,V>
java.lang.Object
net.thevpc.common.props.impl.PropertyBase
net.thevpc.common.props.impl.WritablePropertyBase
net.thevpc.common.props.impl.AbstractWritableMapImpl<K,V>
- All Implemented Interfaces:
Iterable<MapEntry<K,V>>, ObservableMap<K, V>, Property, WritableMap<K, V>, WritableProperty
- Direct Known Subclasses:
WritableMapImpl
public abstract class AbstractWritableMapImpl<K,V>
extends WritablePropertyBase
implements WritableMap<K,V>
-
Field Summary
Fields inherited from class WritablePropertyBase
adjusters, vetosFields inherited from class PropertyBase
listeners, parentProperty -
Constructor Summary
ConstructorsConstructorDescriptionAbstractWritableMapImpl(String name, PropertyType keyType, PropertyType valueType) -
Method Summary
Modifier and TypeMethodDescriptioncomputeIfAbsent(K k, Function<? super K, ? extends V> vf) booleancontainsKey(K k) protected abstract booleancontainsKeyImpl(K k) entrySet()protected abstract Vbooleaniterator()keySet()protected abstract VreadOnly()voidvoidprotected abstract VremoveImpl(K k) intsize()protected abstract intsizeImpl()toMap()toString()values()Methods inherited from class WritablePropertyBase
adjusters, vetosMethods inherited from class PropertyBase
createListeners, events, fullPropertyName, parentProperty, propagateEvents, propertyName, propertyType, userObjectsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Iterable
forEach, spliteratorMethods inherited from interface ObservableMap
streamMethods inherited from interface Property
events, getChildProperty, onChange, onChange, onChangeAndInit, onChangeAndInit, onPropagatedChange, onPropagatedChange, onPropagatedChangeAndInit, onPropagatedChangeAndInit, propertyName, propertyType, userObjects, with, withMethods inherited from interface WritableMap
vetosMethods inherited from interface WritableProperty
adjusters
-
Constructor Details
-
AbstractWritableMapImpl
-
-
Method Details
-
containsKey
- Specified by:
containsKeyin interfaceObservableMap<K,V>
-
toMap
-
entrySetImpl
-
removeAll
public void removeAll()- Specified by:
removeAllin interfaceWritableMap<K,V>
-
removeAll
-
computeIfAbsent
- Specified by:
computeIfAbsentin interfaceWritableMap<K,V>
-
put
-
remove
-
values
- Specified by:
valuesin interfaceObservableMap<K,V> - Specified by:
valuesin interfaceWritableMap<K,V>
-
readOnly
-
containsKeyImpl
-
sizeImpl
protected abstract int sizeImpl() -
getImpl
-
putImpl
-
removeImpl
-
get
-
size
public int size()- Specified by:
sizein interfaceObservableMap<K,V>
-
keySet
- Specified by:
keySetin interfaceObservableMap<K,V>
-
entrySet
- Specified by:
entrySetin interfaceObservableMap<K,V>
-
findAll
-
isWritable
public boolean isWritable()- Specified by:
isWritablein interfaceProperty
-
iterator
-
toString
- Overrides:
toStringin classPropertyBase
-