T
- the list element type.public class SnapshotObservableList<T>
extends javafx.collections.ObservableListBase<T>
Modifier and Type | Class and Description |
---|---|
static class |
SnapshotObservableList.Exposed<T>
Exposes snap().
|
modCount
Constructor and Description |
---|
SnapshotObservableList() |
SnapshotObservableList(List<T> pDelegate) |
Modifier and Type | Method and Description |
---|---|
void |
add(int pIdx,
T pElement) |
boolean |
add(T pElement) |
boolean |
addAll(Collection<? extends T> pCollection) |
boolean |
addAll(int pIndex,
Collection<? extends T> pCollection) |
void |
clear() |
boolean |
contains(Object pObj) |
boolean |
containsAll(Collection<?> pCollection) |
boolean |
equals(Object pObject) |
T |
get(int pIdx) |
int |
hashCode() |
int |
indexOf(Object pObj) |
boolean |
isEmpty() |
Iterator<T> |
iterator() |
int |
lastIndexOf(Object pObj) |
ListIterator<T> |
listIterator() |
ListIterator<T> |
listIterator(int pIndex) |
T |
remove(int pIdx) |
boolean |
remove(Object pObj) |
boolean |
removeAll(Collection<?> pCollection) |
void |
replaceAll(UnaryOperator<T> pOperator) |
boolean |
retainAll(Collection<?> pObjects) |
T |
set(int pIdx,
T pElement) |
int |
size() |
protected void |
snap()
Take snapshot and fire events.
|
void |
sort(Comparator<? super T> pComparator) |
Spliterator<T> |
spliterator() |
List<T> |
subList(int pFromIndex,
int pToIndex) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] pAry) |
addAll, addListener, addListener, beginChange, endChange, fireChange, hasListeners, nextAdd, nextPermutation, nextRemove, nextRemove, nextReplace, nextSet, nextUpdate, remove, removeAll, removeListener, removeListener, retainAll, setAll, setAll
removeRange
toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
parallelStream, removeIf, stream
protected void snap()
public int size()
size
in interface Collection<T>
size
in interface List<T>
size
in class AbstractCollection<T>
public boolean isEmpty()
isEmpty
in interface Collection<T>
isEmpty
in interface List<T>
isEmpty
in class AbstractCollection<T>
public boolean contains(Object pObj)
contains
in interface Collection<T>
contains
in interface List<T>
contains
in class AbstractCollection<T>
public Object[] toArray()
toArray
in interface Collection<T>
toArray
in interface List<T>
toArray
in class AbstractCollection<T>
public <T> T[] toArray(T[] pAry)
toArray
in interface Collection<T>
toArray
in interface List<T>
toArray
in class AbstractCollection<T>
public boolean add(T pElement)
add
in interface Collection<T>
add
in interface List<T>
add
in class AbstractList<T>
public void add(int pIdx, T pElement)
public boolean remove(Object pObj)
remove
in interface Collection<T>
remove
in interface List<T>
remove
in class AbstractCollection<T>
public T remove(int pIdx)
public boolean containsAll(Collection<?> pCollection)
containsAll
in interface Collection<T>
containsAll
in interface List<T>
containsAll
in class AbstractCollection<T>
public boolean addAll(Collection<? extends T> pCollection)
addAll
in interface Collection<T>
addAll
in interface List<T>
addAll
in class AbstractCollection<T>
public boolean addAll(int pIndex, Collection<? extends T> pCollection)
public boolean removeAll(Collection<?> pCollection)
removeAll
in interface Collection<T>
removeAll
in interface List<T>
removeAll
in class AbstractCollection<T>
public boolean retainAll(Collection<?> pObjects)
retainAll
in interface Collection<T>
retainAll
in interface List<T>
retainAll
in class AbstractCollection<T>
public void replaceAll(UnaryOperator<T> pOperator)
public void sort(Comparator<? super T> pComparator)
public void clear()
clear
in interface Collection<T>
clear
in interface List<T>
clear
in class AbstractList<T>
public boolean equals(Object pObject)
equals
in interface Collection<T>
equals
in interface List<T>
equals
in class AbstractList<T>
public int hashCode()
hashCode
in interface Collection<T>
hashCode
in interface List<T>
hashCode
in class AbstractList<T>
public T get(int pIdx)
public int indexOf(Object pObj)
public int lastIndexOf(Object pObj)
lastIndexOf
in interface List<T>
lastIndexOf
in class AbstractList<T>
public ListIterator<T> listIterator()
listIterator
in interface List<T>
listIterator
in class AbstractList<T>
public ListIterator<T> listIterator(int pIndex)
listIterator
in interface List<T>
listIterator
in class AbstractList<T>
public Spliterator<T> spliterator()
Copyright © 2023. All rights reserved.