E - the type of elements in this collectionpublic interface IObservableList<E> extends java.util.List<E>, IObservableCollection<E>
AbstractObservableList,
ObservableList| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E o) |
boolean |
addAll(java.util.Collection<? extends E> c) |
boolean |
addAll(int index,
java.util.Collection<? extends E> c) |
void |
addListChangeListener(IListChangeListener<? super E> listener)
Adds the given list change listener to the list of list change listeners.
|
boolean |
contains(java.lang.Object o) |
boolean |
containsAll(java.util.Collection<?> c) |
boolean |
equals(java.lang.Object o) |
E |
get(int index) |
java.lang.Object |
getElementType()
Returns the element type of this observable collection, or
null if this observable collection is untyped. |
int |
hashCode() |
int |
indexOf(java.lang.Object o) |
boolean |
isEmpty() |
java.util.Iterator<E> |
iterator() |
int |
lastIndexOf(java.lang.Object o) |
java.util.ListIterator<E> |
listIterator() |
java.util.ListIterator<E> |
listIterator(int index) |
E |
move(int oldIndex,
int newIndex)
Moves the element located at
oldIndex to
newIndex. |
E |
remove(int index) |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> c) |
void |
removeListChangeListener(IListChangeListener<? super E> listener)
Removes the given list change listener from the list of list change
listeners.
|
boolean |
retainAll(java.util.Collection<?> c) |
E |
set(int index,
E element) |
int |
size() |
java.util.List<E> |
subList(int fromIndex,
int toIndex) |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
addChangeListener, addDisposeListener, addStaleListener, dispose, getRealm, isDisposed, isStale, removeChangeListener, removeDisposeListener, removeStaleListenervoid addListChangeListener(IListChangeListener<? super E> listener)
listener - void removeListChangeListener(IListChangeListener<? super E> listener)
listener - int size()
boolean isEmpty()
boolean contains(java.lang.Object o)
java.util.Iterator<E> iterator()
java.lang.Object[] toArray()
<T> T[] toArray(T[] a)
boolean add(E o)
boolean remove(java.lang.Object o)
boolean containsAll(java.util.Collection<?> c)
boolean addAll(java.util.Collection<? extends E> c)
boolean addAll(int index,
java.util.Collection<? extends E> c)
addAll in interface java.util.List<E>boolean removeAll(java.util.Collection<?> c)
boolean retainAll(java.util.Collection<?> c)
boolean equals(java.lang.Object o)
int hashCode()
E move(int oldIndex, int newIndex)
oldIndex to
newIndex. This method is equivalent to calling
add(newIndex, remove(oldIndex)).
Implementors should deliver list change notification for the remove and
add operations in the same ListChangeEvent, as this allows
ListDiff.accept(ListDiffVisitor) to recognize the operation as a
move.
oldIndex - the element's position before the move. Must be within the
range 0 <= oldIndex < size().newIndex - the element's position after the move. Must be within the
range 0 <= newIndex < size().java.lang.IndexOutOfBoundsException - if either argument is out of range (
0 <= index < size()).ListDiffVisitor.handleMove(int, int, Object),
ListDiff.accept(ListDiffVisitor)int indexOf(java.lang.Object o)
indexOf in interface java.util.List<E>int lastIndexOf(java.lang.Object o)
lastIndexOf in interface java.util.List<E>java.util.ListIterator<E> listIterator()
listIterator in interface java.util.List<E>java.util.ListIterator<E> listIterator(int index)
listIterator in interface java.util.List<E>java.util.List<E> subList(int fromIndex, int toIndex)
subList in interface java.util.List<E>java.lang.Object getElementType()
IObservableCollectionnull if this observable collection is untyped.getElementType in interface IObservableCollection<E>null if untyped
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.