Package io.jmix.flowui.model.impl
Class ObservableList<T>
java.lang.Object
com.google.common.collect.ForwardingObject
com.google.common.collect.ForwardingCollection<E>
com.google.common.collect.ForwardingList<T>
io.jmix.flowui.model.impl.ObservableList<T>
- All Implemented Interfaces:
Serializable,Iterable<T>,Collection<T>,List<T>
public class ObservableList<T>
extends com.google.common.collect.ForwardingList<T>
implements Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionObservableList(List<T> delegate, BiConsumer<CollectionChangeType, Collection<? extends T>> onCollectionChanged) ObservableList(List<T> delegate, Map<IndexKey, Integer> idMap, BiConsumer<CollectionChangeType, Collection<? extends T>> onCollectionChanged) ObservableList(List<T> delegate, Map<IndexKey, Integer> idMap, BiConsumer<CollectionChangeType, Collection<? extends T>> onCollectionChanged, Consumer<T> onRemoveItem, Consumer<T> onAddItem) -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleanaddAll(int index, Collection<? extends T> elements) booleanaddAll(Collection<? extends T> collection) voidclear()delegate()protected voiddoOnAddItem(T item) protected voiddoOnRemoveItem(T item) protected voidfireCollectionChanged(CollectionChangeType type, Collection<? extends T> changes) protected voiditerator()listIterator(int index) remove(int index) booleanbooleanremoveAll(Collection<?> collection) booleanretainAll(Collection<?> collection) voidsort(Comparator<? super T> c) Methods inherited from class com.google.common.collect.ForwardingList
equals, get, hashCode, indexOf, lastIndexOf, standardAdd, standardAddAll, standardEquals, standardHashCode, standardIndexOf, standardIterator, standardLastIndexOf, standardListIterator, standardListIterator, standardSubList, subListMethods inherited from class com.google.common.collect.ForwardingCollection
contains, containsAll, isEmpty, size, standardAddAll, standardClear, standardContains, standardContainsAll, standardIsEmpty, standardRemove, standardRemoveAll, standardRetainAll, standardToArray, standardToArray, standardToString, toArray, toArrayMethods inherited from class com.google.common.collect.ForwardingObject
toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
contains, containsAll, isEmpty, replaceAll, size, spliterator, toArray, toArray
-
Constructor Details
-
ObservableList
public ObservableList(List<T> delegate, BiConsumer<CollectionChangeType, Collection<? extends T>> onCollectionChanged) -
ObservableList
public ObservableList(List<T> delegate, Map<IndexKey, Integer> idMap, BiConsumer<CollectionChangeType, Collection<? extends T>> onCollectionChanged) -
ObservableList
public ObservableList(List<T> delegate, Map<IndexKey, Integer> idMap, BiConsumer<CollectionChangeType, Collection<? extends T>> onCollectionChanged, Consumer<T> onRemoveItem, Consumer<T> onAddItem)
-
-
Method Details
-
fireCollectionChanged
-
fireCollectionRefreshed
protected void fireCollectionRefreshed() -
doOnAddItem
-
doOnRemoveItem
-
delegate
- Specified by:
delegatein classcom.google.common.collect.ForwardingList<T>
-
add
-
add
-
addAll
-
addAll
-
set
-
remove
-
remove
-
removeAll
-
retainAll
-
clear
public void clear() -
listIterator
- Specified by:
listIteratorin interfaceList<T>- Overrides:
listIteratorin classcom.google.common.collect.ForwardingList<T>
-
listIterator
- Specified by:
listIteratorin interfaceList<T>- Overrides:
listIteratorin classcom.google.common.collect.ForwardingList<T>
-
iterator
-
sort
-