Module org.controlsfx.controls
Package impl.org.controlsfx.collections
Class ReadOnlyUnbackedObservableList<E>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- javafx.collections.ObservableListBase<E>
-
- impl.org.controlsfx.collections.ReadOnlyUnbackedObservableList<E>
-
- All Implemented Interfaces:
Iterable<E>
,Collection<E>
,List<E>
,Observable
,ObservableList<E>
public abstract class ReadOnlyUnbackedObservableList<E> extends ObservableListBase<E>
Minimum implementation of com.sun.javafx.scene.control.ReadOnlyUnbackedObservableList
-
-
Field Summary
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Constructor Description ReadOnlyUnbackedObservableList()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
add(int index, E element)
boolean
add(E e)
boolean
addAll(int index, Collection<? extends E> c)
boolean
addAll(E... elements)
boolean
addAll(Collection<? extends E> c)
void
callObservers(ListChangeListener.Change<E> c)
void
clear()
boolean
contains(Object o)
boolean
containsAll(Collection<?> c)
abstract E
get(int i)
int
indexOf(Object o)
boolean
isEmpty()
Iterator<E>
iterator()
int
lastIndexOf(Object o)
ListIterator<E>
listIterator()
ListIterator<E>
listIterator(int index)
E
remove(int index)
void
remove(int from, int to)
boolean
remove(Object o)
boolean
removeAll(E... elements)
boolean
removeAll(Collection<?> c)
boolean
retainAll(E... elements)
boolean
retainAll(Collection<?> c)
E
set(int index, E element)
boolean
setAll(E... elements)
boolean
setAll(Collection<? extends E> col)
abstract int
size()
List<E>
subList(int fromIndex, int toIndex)
NOTE: This method does not fulfill the subList contract from Collections, it simply returns a list containing the values in the given range.Object[]
toArray()
<T> T[]
toArray(T[] a)
String
toString()
-
Methods inherited from class javafx.collections.ObservableListBase
addListener, addListener, beginChange, endChange, fireChange, hasListeners, nextAdd, nextPermutation, nextRemove, nextRemove, nextReplace, nextSet, nextUpdate, removeListener, removeListener
-
Methods inherited from class java.util.AbstractList
equals, hashCode, removeRange
-
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
equals, hashCode, replaceAll, sort, spliterator
-
Methods inherited from interface javafx.collections.ObservableList
filtered, sorted, sorted
-
-
-
-
Method Detail
-
callObservers
public void callObservers(ListChangeListener.Change<E> c)
-
get
public abstract E get(int i)
-
size
public abstract int size()
- Specified by:
size
in interfaceCollection<E>
- Specified by:
size
in interfaceList<E>
- Specified by:
size
in classAbstractCollection<E>
-
indexOf
public int indexOf(Object o)
-
lastIndexOf
public int lastIndexOf(Object o)
- Specified by:
lastIndexOf
in interfaceList<E>
- Overrides:
lastIndexOf
in classAbstractList<E>
-
contains
public boolean contains(Object o)
- Specified by:
contains
in interfaceCollection<E>
- Specified by:
contains
in interfaceList<E>
- Overrides:
contains
in classAbstractCollection<E>
-
containsAll
public boolean containsAll(Collection<?> c)
- Specified by:
containsAll
in interfaceCollection<E>
- Specified by:
containsAll
in interfaceList<E>
- Overrides:
containsAll
in classAbstractCollection<E>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfaceCollection<E>
- Specified by:
isEmpty
in interfaceList<E>
- Overrides:
isEmpty
in classAbstractCollection<E>
-
listIterator
public ListIterator<E> listIterator()
- Specified by:
listIterator
in interfaceList<E>
- Overrides:
listIterator
in classAbstractList<E>
-
listIterator
public ListIterator<E> listIterator(int index)
- Specified by:
listIterator
in interfaceList<E>
- Overrides:
listIterator
in classAbstractList<E>
-
subList
public List<E> subList(int fromIndex, int toIndex)
NOTE: This method does not fulfill the subList contract from Collections, it simply returns a list containing the values in the given range.
-
toArray
public Object[] toArray()
- Specified by:
toArray
in interfaceCollection<E>
- Specified by:
toArray
in interfaceList<E>
- Overrides:
toArray
in classAbstractCollection<E>
-
toArray
public <T> T[] toArray(T[] a)
- Specified by:
toArray
in interfaceCollection<E>
- Specified by:
toArray
in interfaceList<E>
- Overrides:
toArray
in classAbstractCollection<E>
-
toString
public String toString()
- Overrides:
toString
in classAbstractCollection<E>
-
add
public boolean add(E e)
- Specified by:
add
in interfaceCollection<E>
- Specified by:
add
in interfaceList<E>
- Overrides:
add
in classAbstractList<E>
-
add
public void add(int index, E element)
-
addAll
public boolean addAll(Collection<? extends E> c)
- Specified by:
addAll
in interfaceCollection<E>
- Specified by:
addAll
in interfaceList<E>
- Overrides:
addAll
in classAbstractCollection<E>
-
addAll
public boolean addAll(int index, Collection<? extends E> c)
-
addAll
public boolean addAll(E... elements)
- Specified by:
addAll
in interfaceObservableList<E>
- Overrides:
addAll
in classObservableListBase<E>
-
setAll
public boolean setAll(Collection<? extends E> col)
- Specified by:
setAll
in interfaceObservableList<E>
- Overrides:
setAll
in classObservableListBase<E>
-
setAll
public boolean setAll(E... elements)
- Specified by:
setAll
in interfaceObservableList<E>
- Overrides:
setAll
in classObservableListBase<E>
-
clear
public void clear()
- Specified by:
clear
in interfaceCollection<E>
- Specified by:
clear
in interfaceList<E>
- Overrides:
clear
in classAbstractList<E>
-
remove
public E remove(int index)
-
remove
public boolean remove(Object o)
- Specified by:
remove
in interfaceCollection<E>
- Specified by:
remove
in interfaceList<E>
- Overrides:
remove
in classAbstractCollection<E>
-
removeAll
public boolean removeAll(Collection<?> c)
- Specified by:
removeAll
in interfaceCollection<E>
- Specified by:
removeAll
in interfaceList<E>
- Overrides:
removeAll
in classAbstractCollection<E>
-
retainAll
public boolean retainAll(Collection<?> c)
- Specified by:
retainAll
in interfaceCollection<E>
- Specified by:
retainAll
in interfaceList<E>
- Overrides:
retainAll
in classAbstractCollection<E>
-
remove
public void remove(int from, int to)
- Specified by:
remove
in interfaceObservableList<E>
- Overrides:
remove
in classObservableListBase<E>
-
removeAll
public boolean removeAll(E... elements)
- Specified by:
removeAll
in interfaceObservableList<E>
- Overrides:
removeAll
in classObservableListBase<E>
-
retainAll
public boolean retainAll(E... elements)
- Specified by:
retainAll
in interfaceObservableList<E>
- Overrides:
retainAll
in classObservableListBase<E>
-
-