Package org.flasby.util
Class ObservableList<T>
java.lang.Object
org.flasby.util.AbstractObservable
org.flasby.util.ObservableList<T>
- All Implemented Interfaces:
Iterable<T>
,Collection<T>
,List<T>
,SequencedCollection<T>
,Observable
,Observer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
boolean
addAll
(int index, Collection<? extends T> c) boolean
addAll
(Collection<? extends T> c) adds a new element and notofies observers if this changed the array.void
clear()
boolean
boolean
containsAll
(Collection<?> c) boolean
get()
get
(int index) int
hashCode()
int
boolean
isEmpty()
iterator()
int
listIterator
(int index) void
notifyChange
(T object) void
remove
(int index) boolean
boolean
removeAll
(Collection<?> c) boolean
retainAll
(Collection<?> c) int
size()
subList
(int fromIndex, int toIndex) Object[]
toArray()
<S> S[]
toArray
(S[] a) void
update
(Observable o) void
update
(Observable o, Object arg) static <S> ObservableList
<S> Methods inherited from class org.flasby.util.AbstractObservable
addObserver, notifyObservers, notifyObservers, removeObserver
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.List
addFirst, addLast, getFirst, getLast, removeFirst, removeLast, replaceAll, reversed, sort, spliterator
-
Constructor Details
-
ObservableList
public ObservableList()
-
-
Method Details
-
wrap
-
notifyChange
-
notifyChanges
public void notifyChanges() -
add
-
remove
-
get
-
contains
-
containsAll
- Specified by:
containsAll
in interfaceCollection<T>
- Specified by:
containsAll
in interfaceList<T>
-
size
public int size() -
add
-
addAll
adds a new element and notofies observers if this changed the array. -
addAll
-
clear
public void clear() -
equals
-
get
-
hashCode
public int hashCode() -
indexOf
-
isEmpty
public boolean isEmpty() -
iterator
-
lastIndexOf
- Specified by:
lastIndexOf
in interfaceList<T>
-
listIterator
- Specified by:
listIterator
in interfaceList<T>
-
listIterator
- Specified by:
listIterator
in interfaceList<T>
-
remove
-
removeAll
-
retainAll
-
set
-
subList
-
toArray
-
toArray
public <S> S[] toArray(S[] a) -
update
-
update
-