public abstract class WritableListBase<T> extends WritableValueBase<T> implements WritableList<T>
| Modifier and Type | Field and Description |
|---|---|
protected ObservableList<T> |
ro |
adjusters, vetosmodellisteners, parentProperty| Constructor and Description |
|---|
WritableListBase(String name,
PropertyType elementType) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(int index,
T v) |
boolean |
add(T v) |
boolean |
addCollection(Collection<? extends T> elements) |
protected abstract boolean |
addImpl(int index,
T v) |
protected boolean |
canAddImpl(int index,
T v) |
protected boolean |
canRemoveImpl(int index) |
protected boolean |
canSetImpl(int index,
T v) |
void |
clear() |
boolean |
contains(T a) |
List<T> |
findAll(Predicate<T> a) |
int[] |
findAllIndexes(Predicate<T> a) |
T |
findFirst(Predicate<T> a) |
T |
findFirst(Predicate<T> a,
int from) |
T |
findFirst(Predicate<T> a,
int from,
int to) |
int |
findFirstIndex(Predicate<T> a) |
int |
findFirstIndex(Predicate<T> a,
int from) |
int |
findFirstIndex(Predicate<T> a,
int from,
int to) |
protected void |
firePropertyUpdated(PropertyEvent e) |
T |
get(int index) |
protected T |
get0() |
protected abstract T |
getImpl(int index) |
protected abstract int |
indexOfImpl(T v) |
boolean |
isEmpty() |
boolean |
isWritable() |
Iterator<T> |
iterator() |
ObservableList<T> |
readOnly() |
boolean |
remove(T item) |
void |
removeAll(Predicate<T> a) |
T |
removeAt(int index) |
protected abstract T |
removeAtImpl(int index) |
boolean |
removeCollection(Collection<? extends T> extra) |
void |
set(int index,
T v) |
void |
set(T value)
override the set value because all events will be managed in the
add/remove by index
|
protected void |
set0(T value) |
boolean |
setCollection(Collection<? extends T> all) |
protected abstract T |
setImpl(int index,
T v) |
int |
size() |
protected abstract int |
sizeImpl() |
List<T> |
toList() |
String |
toString() |
adjusters, createReadOnly, currentPath, get, model, vetosequals, hashCodecreateListeners, events, fullPropertyName, parentProperty, propagateEvents, propertyName, propertyType, userObjectsclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, removeAll, removeFirst, removeLast, setAll, vetosfindFirstIndexOf, first, get, last, streamforEach, spliteratorbind, bind, bind, bind, bindSource, bindTo, getOrCompute, setAndBind, setAndBindConvert, setUsing, setUsingNonNullbindConvert, bindTarget, doNonNull, getOr, getOrDefault, getRequired, isNotNull, isNull, mapBooleanValue, mapDoubleValue, mapEqualsValue, mapFloatValue, mapIntValue, mapLongValue, mapNotEqualsValue, mapStringValue, mapValue, mapValue, propertyClass, unbind, withValueadjustersevents, getChildProperty, onChange, onChange, onChangeAndInit, onChangeAndInit, onPropagatedChange, onPropagatedChange, onPropagatedChangeAndInit, onPropagatedChangeAndInit, propertyName, propertyType, userObjects, with, withprotected ObservableList<T> ro
public WritableListBase(String name, PropertyType elementType)
protected T get0()
protected void set0(T value)
protected boolean canAddImpl(int index,
T v)
protected boolean canSetImpl(int index,
T v)
protected boolean canRemoveImpl(int index)
public T get(int index)
get in interface ObservableList<T>public int size()
size in interface ObservableList<T>public int[] findAllIndexes(Predicate<T> a)
findAllIndexes in interface ObservableList<T>public boolean contains(T a)
contains in interface ObservableList<T>public T findFirst(Predicate<T> a, int from)
findFirst in interface ObservableList<T>public T findFirst(Predicate<T> a, int from, int to)
findFirst in interface ObservableList<T>public int findFirstIndex(Predicate<T> a)
findFirstIndex in interface ObservableList<T>public int findFirstIndex(Predicate<T> a, int from)
findFirstIndex in interface ObservableList<T>public int findFirstIndex(Predicate<T> a, int from, int to)
findFirstIndex in interface ObservableList<T>public List<T> toList()
toList in interface ObservableList<T>public boolean isEmpty()
isEmpty in interface WritableList<T>public void clear()
clear in interface WritableList<T>public void removeAll(Predicate<T> a)
removeAll in interface WritableList<T>public boolean add(int index,
T v)
add in interface WritableList<T>protected void firePropertyUpdated(PropertyEvent e)
public boolean add(T v)
add in interface WritableList<T>public boolean setCollection(Collection<? extends T> all)
setCollection in interface WritableList<T>public boolean addCollection(Collection<? extends T> elements)
addCollection in interface WritableList<T>public boolean removeCollection(Collection<? extends T> extra)
removeCollection in interface WritableList<T>public void set(int index,
T v)
set in interface WritableList<T>public T removeAt(int index)
removeAt in interface WritableList<T>public boolean remove(T item)
remove in interface WritableList<T>protected abstract boolean addImpl(int index,
T v)
protected abstract int indexOfImpl(T v)
protected abstract T removeAtImpl(int index)
protected abstract T getImpl(int index)
protected abstract int sizeImpl()
public boolean isWritable()
isWritable in interface PropertyisWritable in class WritableValueBase<T>public String toString()
toString in class ObservableValueBase<T>public void set(T value)
set in interface SetValueModel<T>set in interface WritableList<T>set in interface WritableValue<T>set in class WritableValueBase<T>value - singleton or nullpublic ObservableList<T> readOnly()
readOnly in interface ObservableList<T>readOnly in interface ObservableValue<T>readOnly in interface PropertyreadOnly in class WritableValueBase<T>Copyright © 2022 vpc open source initiative. All rights reserved.