Package org.openremote.model.util
Class ObservableList<T>
java.lang.Object
java.util.AbstractCollection<T>
java.util.AbstractList<T>
java.util.ArrayList<T>
org.openremote.model.util.ObservableList<T>
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<T>
,Collection<T>
,List<T>
,RandomAccess
,SequencedCollection<T>
- See Also:
-
Field Summary
FieldsFields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
ConstructorsConstructorDescriptionObservableList
(int initialCapacity, Consumer<ObservableList<T>> onModified) ObservableList
(Collection<? extends T> c, Consumer<ObservableList<T>> onModified) ObservableList
(Consumer<ObservableList<T>> onModified) -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
boolean
addAll
(int index, Collection<? extends T> c) boolean
addAll
(Collection<? extends T> c) void
clear()
void
clear
(boolean notify) protected void
remove
(int index) boolean
boolean
removeAll
(Collection<?> c) boolean
protected void
removeRange
(int fromIndex, int toIndex) void
replaceAll
(UnaryOperator<T> operator) boolean
retainAll
(Collection<?> c) Methods inherited from class java.util.ArrayList
addFirst, addLast, clone, contains, ensureCapacity, equals, forEach, get, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, removeFirst, removeLast, size, sort, spliterator, subList, toArray, toArray, trimToSize
Methods inherited from class java.util.AbstractCollection
containsAll, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
Methods inherited from interface java.util.List
containsAll, reversed
-
Field Details
-
onModified
-
-
Constructor Details
-
ObservableList
-
ObservableList
-
ObservableList
-
-
Method Details
-
notifyModified
protected void notifyModified() -
set
-
add
-
add
-
addAll
-
addAll
-
replaceAll
- Specified by:
replaceAll
in interfaceList<T>
- Overrides:
replaceAll
in classArrayList<T>
-
remove
-
remove
-
clear
public void clear() -
clear
public void clear(boolean notify) -
removeRange
protected void removeRange(int fromIndex, int toIndex) - Overrides:
removeRange
in classArrayList<T>
-
removeAll
-
retainAll
-
removeIf
-