Class WritableLiMapBase<K,V>
java.lang.Object
net.thevpc.common.props.impl.PropertyBase
net.thevpc.common.props.impl.WritablePropertyBase
net.thevpc.common.props.impl.WritableLiMapBase<K,V>
- All Implemented Interfaces:
Iterable<MapEntry<K,V>>, ObservableMap<K, V>, Property, WritableLiMap<K, V>, WritableProperty
- Direct Known Subclasses:
WritableLiMapImpl
public abstract class WritableLiMapBase<K,V>
extends WritablePropertyBase
implements WritableLiMap<K,V>
-
Field Summary
Fields inherited from class WritablePropertyBase
adjusters, vetosFields inherited from class PropertyBase
listeners, parentProperty -
Constructor Summary
ConstructorsConstructorDescriptionWritableLiMapBase(String name, PropertyType keyType, PropertyType valueType, Function<V, K> valueToKey) -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsKey(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 WritableLiMap
vetosMethods inherited from interface WritableProperty
adjusters
-
Constructor Details
-
WritableLiMapBase
public WritableLiMapBase(String name, PropertyType keyType, PropertyType valueType, Function<V, K> valueToKey)
-
-
Method Details
-
toMap
-
entrySetImpl
-
removeAll
public void removeAll()- Specified by:
removeAllin interfaceWritableLiMap<K,V>
-
removeAll
-
add
-
remove
-
values
- Specified by:
valuesin interfaceObservableMap<K,V> - Specified by:
valuesin interfaceWritableLiMap<K,V>
-
readOnly
-
containsKey
- Specified by:
containsKeyin interfaceObservableMap<K,V>
-
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
-