Class WritableListAdapter<T>
java.lang.Object
net.thevpc.common.props.impl.WritableListAdapter<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:
WritableListIndexSelectionImpl
- Author:
- thevpc
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleanbooleanaddCollection(Collection<? extends T> all) voidclear()booleanevents()int[]findAllIndexes(Predicate<T> a) intfindFirstIndex(Predicate<T> a) intfindFirstIndex(Predicate<T> a, int from) intfindFirstIndex(Predicate<T> a, int from, int to) get()convenient method to return the first element or nullget(int index) protected abstract WritableList<T> booleanisEmpty()booleaniterator()readOnly()booleanvoidbooleanremoveAt(int index) booleanremoveCollection(Collection<? extends T> all) voidvoidconvenient method to replace all the values of the list with a singleton or nullbooleanbooleansetCollection(Collection<? extends T> all) intsize()toList()toString()vetos()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Iterable
forEach, spliteratorMethods inherited from interface ObservableList
findFirstIndexOf, first, 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
getChildProperty, onChange, onChange, onChangeAndInit, onChangeAndInit, onPropagatedChange, onPropagatedChange, onPropagatedChangeAndInit, onPropagatedChangeAndInit, with, withMethods inherited from interface WritableList
removeFirst, removeLastMethods inherited from interface WritableValue
bind, bind, bind, bind, bindSource, bindTo, getOrCompute, setAndBind, setAndBindConvert, setUsing, setUsingNonNull
-
Constructor Details
-
WritableListAdapter
public WritableListAdapter()
-
-
Method Details
-
getAdaptee
-
clear
public void clear()- Specified by:
clearin interfaceWritableList<T>
-
removeAll
- Specified by:
removeAllin interfaceWritableList<T>
-
add
- Specified by:
addin interfaceWritableList<T>
-
add
- Specified by:
addin interfaceWritableList<T>
-
set
- Specified by:
setin interfaceWritableList<T>
-
removeAt
- Specified by:
removeAtin interfaceWritableList<T>
-
remove
- Specified by:
removein interfaceWritableList<T>
-
vetos
- Specified by:
vetosin interfaceWritableList<T>- Specified by:
vetosin interfaceWritableProperty
-
get
- Specified by:
getin interfaceObservableList<T>
-
size
public int size()- Specified by:
sizein interfaceObservableList<T>
-
findAllIndexes
- Specified by:
findAllIndexesin 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>
-
readOnly
- Specified by:
readOnlyin interfaceObservableList<T>- Specified by:
readOnlyin interfaceObservableValue<T>- Specified by:
readOnlyin interfaceProperty
-
propertyName
- Specified by:
propertyNamein interfaceProperty
-
propertyType
- Specified by:
propertyTypein interfaceProperty
-
isWritable
public boolean isWritable()- Specified by:
isWritablein interfaceProperty
-
userObjects
- Specified by:
userObjectsin interfaceProperty
-
events
-
iterator
-
contains
- Specified by:
containsin interfaceObservableList<T>
-
addAll
- Specified by:
addAllin interfaceWritableList<T>
-
removeAll
- Specified by:
removeAllin interfaceWritableList<T>
-
get
Description copied from interface:ObservableListconvenient method to return the first element or null- Specified by:
getin interfaceGetValueModel<T>- Specified by:
getin interfaceObservableList<T>- Specified by:
getin interfaceObservableValue<T>- Returns:
- the first element or null
-
set
Description copied from interface:WritableListconvenient method to replace all the values of the list with a singleton or null- Specified by:
setin interfaceSetValueModel<T>- Specified by:
setin interfaceWritableList<T>- Specified by:
setin interfaceWritableValue<T>- Parameters:
value- singleton or null
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceWritableList<T>
-
setAll
- Specified by:
setAllin interfaceWritableList<T>
-
setCollection
- Specified by:
setCollectionin interfaceWritableList<T>
-
addCollection
- Specified by:
addCollectionin interfaceWritableList<T>
-
removeCollection
- Specified by:
removeCollectionin interfaceWritableList<T>
-
adjusters
- Specified by:
adjustersin interfaceWritableProperty
-
toString
-