Package heronarts.lx.utils
Class ObservableList<T>
java.lang.Object
heronarts.lx.utils.ObservableList<T>
- All Implemented Interfaces:
- Iterable<T>,- Collection<T>,- List<T>,- SequencedCollection<T>
- 
Nested Class SummaryNested Classes
- 
Constructor SummaryConstructorsConstructorDescriptionCreate a new observable list which has an ArrayList as its inner listObservableList(List<T> list) Create a new observable list using a given List for its inner list.
- 
Method SummaryModifier and TypeMethodDescriptionvoidbooleanbooleanaddAll(int index, Collection<? extends T> c) booleanaddAll(Collection<? extends T> c) addListener(ObservableList.Listener<T> listener) Get an unmodifiable version of this listvoidclear()booleanbooleancontainsAll(Collection<?> c) get(int index) intbooleanisEmpty()iterator()intlistIterator(int index) remove(int index) booleanbooleanremoveAll(Collection<?> c) removeListener(ObservableList.Listener<T> listener) booleanretainAll(Collection<?> c) intsize()subList(int fromIndex, int toIndex) Object[]toArray()<T1> T1[]toArray(T1[] a) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.CollectionparallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.ListaddFirst, addLast, equals, getFirst, getLast, hashCode, removeFirst, removeLast, replaceAll, reversed, sort, spliterator
- 
Constructor Details- 
ObservableListpublic ObservableList()Create a new observable list which has an ArrayList as its inner list
- 
ObservableListCreate a new observable list using a given List for its inner list. Allows custom inner list types.- Parameters:
- list- List to use as the inner list
 
 
- 
- 
Method Details- 
asUnmodifiableListGet an unmodifiable version of this list
- 
addListener
- 
removeListener
- 
sizepublic int size()
- 
isEmptypublic boolean isEmpty()
- 
contains
- 
iterator
- 
toArray
- 
toArraypublic <T1> T1[] toArray(T1[] a) 
- 
add
- 
remove
- 
containsAll- Specified by:
- containsAllin interface- Collection<T>
- Specified by:
- containsAllin interface- List<T>
 
- 
addAll
- 
addAll
- 
removeAll
- 
retainAll
- 
clearpublic void clear()
- 
get
- 
set
- 
add
- 
remove
- 
indexOf
- 
lastIndexOf- Specified by:
- lastIndexOfin interface- List<T>
 
- 
listIterator- Specified by:
- listIteratorin interface- List<T>
 
- 
listIterator- Specified by:
- listIteratorin interface- List<T>
 
- 
subList
 
-