Package io.jmix.ui.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.ui.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
ConstructorDescriptionObservableList
(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 TypeMethodDescriptionvoid
boolean
boolean
addAll
(int index, Collection<? extends T> elements) boolean
addAll
(Collection<? extends T> collection) void
clear()
delegate()
protected void
doOnAddItem
(T item) protected void
doOnRemoveItem
(T item) protected void
fireCollectionChanged
(CollectionChangeType type, Collection<? extends T> changes) protected void
iterator()
listIterator
(int index) remove
(int index) boolean
boolean
removeAll
(Collection<?> collection) boolean
retainAll
(Collection<?> collection) void
sort
(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, subList
Methods inherited from class com.google.common.collect.ForwardingCollection
contains, containsAll, isEmpty, size, standardAddAll, standardClear, standardContains, standardContainsAll, standardIsEmpty, standardRemove, standardRemoveAll, standardRetainAll, standardToArray, standardToArray, standardToString, toArray, toArray
Methods inherited from class com.google.common.collect.ForwardingObject
toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods 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:
delegate
in classcom.google.common.collect.ForwardingList<T>
-
add
-
add
-
addAll
-
addAll
-
set
-
remove
-
remove
-
removeAll
-
retainAll
-
clear
public void clear() -
listIterator
- Specified by:
listIterator
in interfaceList<T>
- Overrides:
listIterator
in classcom.google.common.collect.ForwardingList<T>
-
listIterator
- Specified by:
listIterator
in interfaceList<T>
- Overrides:
listIterator
in classcom.google.common.collect.ForwardingList<T>
-
iterator
-
sort
-