java.lang.Object
eu.hansolo.toolbox.observables.ObservableList<T>
- All Implemented Interfaces:
Cloneable,Iterable<T>,Collection<T>,List<T>,RandomAccess
-
Constructor Summary
ConstructorsConstructorDescriptionObservableList(Collection<? extends T> collection) ObservableList(T[] array) -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleanaddAll(int index, Collection<? extends T> collection) booleanaddAll(Collection<? extends T> collection) intaddAllAbsent(Collection<T> collection) booleanaddIfAbsent(T element) voidaddListChangeObserver(EvtType type, EvtObserver<ListChangeEvt<T>> observer) voidclear()clone()booleanbooleancontainsAll(Collection<?> collection) booleanvoidfireListChangeEvt(ListChangeEvt<T> evt) voidget(int index) inthashCode()intintbooleanisEmpty()iterator()intlastIndexOf(Object obj) intlastIndexOf(T element, int index) listIterator(int index) remove(int index) booleanbooleanremoveAll(Collection<?> collection) voidbooleanvoidremoveListChangeObserver(EvtType type, EvtObserver<ListChangeEvt<T>> observer) voidreplaceAll(UnaryOperator<T> operator) booleanretainAll(Collection<?> collection) intsize()voidsort(Comparator<? super T> comparator) subList(int fromIndex, int toIndex) Object[]toArray()<U> U[]toArray(U[] a) toString()Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, stream, toArray
-
Constructor Details
-
ObservableList
public ObservableList() -
ObservableList
-
ObservableList
-
-
Method Details
-
get
-
set
-
add
-
add
-
addAll
-
addAll
-
addIfAbsent
-
addAllAbsent
-
remove
-
remove
-
removeAll
-
clear
public void clear() -
retainAll
-
contains
-
containsAll
- Specified by:
containsAllin interfaceCollection<T>- Specified by:
containsAllin interfaceList<T>
-
indexOf
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<T>
-
lastIndexOf
-
size
public int size() -
isEmpty
public boolean isEmpty() -
toArray
-
toArray
public <U> U[] toArray(U[] a) -
iterator
-
listIterator
- Specified by:
listIteratorin interfaceList<T>
-
listIterator
- Specified by:
listIteratorin interfaceList<T>
-
spliterator
- Specified by:
spliteratorin interfaceCollection<T>- Specified by:
spliteratorin interfaceIterable<T>- Specified by:
spliteratorin interfaceList<T>
-
subList
-
equals
-
hashCode
public int hashCode() -
clone
-
forEach
-
removeIf
- Specified by:
removeIfin interfaceCollection<T>
-
replaceAll
- Specified by:
replaceAllin interfaceList<T>
-
sort
-
toString
-
addListChangeObserver
-
removeListChangeObserver
-
removeAllListChangeObservers
public void removeAllListChangeObservers() -
fireListChangeEvt
-