Class WritableListBase<T>
java.lang.Object
net.thevpc.common.props.impl.PropertyBase
net.thevpc.common.props.impl.ObservableValueBase<T>
net.thevpc.common.props.impl.WritableValueBase<T>
net.thevpc.common.props.impl.WritableListBase<T>
- All Implemented Interfaces:
Iterable<T>, GetValueModel<T>, ObservableList<T>, ObservableValue<T>, Property, SetValueModel<T>, WritableList<T>, WritableProperty, WritableValue<T>, WritableValueModel<T>
- Direct Known Subclasses:
WritableListImpl, WritableSetImpl
-
Field Summary
FieldsFields inherited from class WritableValueBase
adjusters, vetosFields inherited from class ObservableValueBase
modelFields inherited from class PropertyBase
listeners, parentProperty -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleanaddCollection(Collection<? extends T> elements) protected abstract booleanprotected booleancanAddImpl(int index, T v) protected booleancanRemoveImpl(int index) protected booleancanSetImpl(int index, T v) voidclear()booleanint[]findAllIndexes(Predicate<T> a) intfindFirstIndex(Predicate<T> a) intfindFirstIndex(Predicate<T> a, int from) intfindFirstIndex(Predicate<T> a, int from, int to) protected voidget(int index) protected Tget0()protected abstract TgetImpl(int index) protected abstract intindexOfImpl(T v) booleanisEmpty()booleaniterator()readOnly()booleanvoidremoveAt(int index) protected abstract TremoveAtImpl(int index) booleanremoveCollection(Collection<? extends T> extra) voidvoidoverride the set value because all events will be managed in the add/remove by indexprotected voidbooleansetCollection(Collection<? extends T> all) protected abstract Tintsize()protected abstract intsizeImpl()toList()toString()Methods inherited from class WritableValueBase
adjusters, createReadOnly, currentPath, get, model, vetosMethods inherited from class ObservableValueBase
equals, hashCodeMethods inherited from class PropertyBase
createListeners, events, fullPropertyName, parentProperty, propagateEvents, propertyName, propertyType, userObjectsMethods inherited from interface Iterable
forEach, spliteratorMethods inherited from interface ObservableList
findFirstIndexOf, first, get, last, streamMethods inherited from interface ObservableValue
bindConvert, bindTarget, doNonNull, getOr, getOrDefault, getRequired, isNotNull, isNull, mapBooleanValue, mapDoubleValue, mapEqualsValue, mapFloatValue, mapIntValue, mapLongValue, mapNotEqualsValue, mapStringValue, mapValue, mapValue, propertyClass, unbind, withValueMethods inherited from interface Property
events, getChildProperty, onChange, onChange, onChangeAndInit, onChangeAndInit, onPropagatedChange, onPropagatedChange, onPropagatedChangeAndInit, onPropagatedChangeAndInit, propertyName, propertyType, userObjects, with, withMethods inherited from interface WritableList
addAll, removeAll, removeFirst, removeLast, setAll, vetosMethods inherited from interface WritableProperty
adjustersMethods inherited from interface WritableValue
bind, bind, bind, bind, bindSource, bindTo, getOrCompute, setAndBind, setAndBindConvert, setUsing, setUsingNonNull
-
Field Details
-
ro
-
-
Constructor Details
-
WritableListBase
-
-
Method Details
-
get0
-
set0
-
canAddImpl
-
canSetImpl
-
canRemoveImpl
protected boolean canRemoveImpl(int index) -
get
- Specified by:
getin interfaceObservableList<T>
-
size
public int size()- Specified by:
sizein interfaceObservableList<T>
-
findAllIndexes
- Specified by:
findAllIndexesin interfaceObservableList<T>
-
contains
- Specified by:
containsin interfaceObservableList<T>
-
findAll
-
findFirst
-
findFirst
-
findFirst
-
findFirstIndex
- Specified by:
findFirstIndexin interfaceObservableList<T>
-
findFirstIndex
- Specified by:
findFirstIndexin interfaceObservableList<T>
-
findFirstIndex
- Specified by:
findFirstIndexin interfaceObservableList<T>
-
toList
- Specified by:
toListin interfaceObservableList<T>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceWritableList<T>
-
clear
public void clear()- Specified by:
clearin interfaceWritableList<T>
-
removeAll
- Specified by:
removeAllin interfaceWritableList<T>
-
add
- Specified by:
addin interfaceWritableList<T>
-
firePropertyUpdated
-
add
- Specified by:
addin interfaceWritableList<T>
-
setCollection
- Specified by:
setCollectionin interfaceWritableList<T>
-
addCollection
- Specified by:
addCollectionin interfaceWritableList<T>
-
removeCollection
- Specified by:
removeCollectionin interfaceWritableList<T>
-
set
- Specified by:
setin interfaceWritableList<T>
-
removeAt
- Specified by:
removeAtin interfaceWritableList<T>
-
remove
- Specified by:
removein interfaceWritableList<T>
-
addImpl
-
setImpl
-
indexOfImpl
-
removeAtImpl
-
getImpl
-
sizeImpl
protected abstract int sizeImpl() -
isWritable
public boolean isWritable()- Specified by:
isWritablein interfaceProperty- Overrides:
isWritablein classWritableValueBase<T>
-
toString
- Overrides:
toStringin classObservableValueBase<T>
-
set
override the set value because all events will be managed in the add/remove by index- Specified by:
setin interfaceSetValueModel<T>- Specified by:
setin interfaceWritableList<T>- Specified by:
setin interfaceWritableValue<T>- Overrides:
setin classWritableValueBase<T>- Parameters:
value- singleton or null
-
readOnly
- Specified by:
readOnlyin interfaceObservableList<T>- Specified by:
readOnlyin interfaceObservableValue<T>- Specified by:
readOnlyin interfaceProperty- Overrides:
readOnlyin classWritableValueBase<T>
-
iterator
-