E - the type of the elements in the listpublic class MultiList<E> extends AbstractObservableList<E>
clear()), as well as the
set(int, Object) method. All other mutator methods (addition methods
and move(int, int)) throw an UnsupportedOperationException.| Constructor and Description |
|---|
MultiList(IObservableList<E>[] lists)
Deprecated.
use MultiList(List
|
MultiList(IObservableList<E>[] lists,
java.lang.Object elementType)
Deprecated.
use MultiList(List
|
MultiList(java.util.List<IObservableList<E>> lists)
Constructs a MultiList in the default realm, and backed by the given
observable lists.
|
MultiList(java.util.List<IObservableList<E>> lists,
java.lang.Object elementType)
Constructs a MultiList in the default realm backed by the given
observable lists.
|
MultiList(Realm realm,
IObservableList<E>[] lists)
Constructs a MultiList belonging to the given realm, and backed by the
given observable lists.
|
MultiList(Realm realm,
IObservableList<E>[] lists,
java.lang.Object elementType)
Deprecated.
use MultiList(realm, List
|
MultiList(Realm realm,
java.util.List<IObservableList<E>> lists,
java.lang.Object elementType)
Constructs a MultiList belonging to the given realm, and backed by the
given observable lists.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
java.lang.Object o) |
boolean |
add(java.lang.Object o) |
boolean |
addAll(java.util.Collection<? extends E> c) |
boolean |
addAll(int index,
java.util.Collection<? extends E> c) |
void |
clear() |
boolean |
contains(java.lang.Object o) |
void |
dispose()
Disposes of this observable object, removing all listeners registered
with this object, and all listeners this object might have registered on
other objects.
|
protected int |
doGetSize() |
boolean |
equals(java.lang.Object o) |
protected void |
firstListenerAdded() |
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() |
boolean |
isStale()
Returns whether the state of this observable is stale and is expected to
change soon.
|
java.util.Iterator<E> |
iterator() |
int |
lastIndexOf(java.lang.Object o) |
protected void |
lastListenerRemoved() |
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) |
boolean |
retainAll(java.util.Collection<?> c) |
E |
set(int index,
E o) |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
addChangeListener, addDisposeListener, addListChangeListener, addStaleListener, checkRealm, containsAll, fireChange, fireListChange, fireStale, getRealm, hasListeners, isDisposed, removeChangeListener, removeDisposeListener, removeListChangeListener, removeStaleListener, sizeclone, finalize, getClass, notify, notifyAll, wait, wait, waitlistIterator, subList@Deprecated public MultiList(IObservableList<E>[] lists)
lists - the array of observable lists backing this MultiList.public MultiList(java.util.List<IObservableList<E>> lists)
lists - the array of observable lists backing this MultiList.@Deprecated public MultiList(IObservableList<E>[] lists, java.lang.Object elementType)
lists - the array of observable lists backing this MultiList.elementType - element type of the constructed list.public MultiList(java.util.List<IObservableList<E>> lists, java.lang.Object elementType)
lists - the array of observable lists backing this MultiList.elementType - element type of the constructed list.public MultiList(Realm realm, IObservableList<E>[] lists)
realm - the observable's realmlists - the array of observable lists backing this MultiList@Deprecated public MultiList(Realm realm, IObservableList<E>[] lists, java.lang.Object elementType)
realm - the observable's realmlists - the array of observable lists backing this MultiListelementType - element type of the constructed list.public MultiList(Realm realm, java.util.List<IObservableList<E>> lists, java.lang.Object elementType)
realm - the observable's realmlists - the array of observable lists backing this MultiListelementType - element type of the constructed list.protected void firstListenerAdded()
firstListenerAdded in class AbstractObservableList<E>protected void lastListenerRemoved()
lastListenerRemoved in class AbstractObservableList<E>protected int doGetSize()
doGetSize in class AbstractObservableList<E>public java.lang.Object getElementType()
IObservableCollectionnull if this observable collection is untyped.null if untypedpublic boolean add(java.lang.Object o)
add in interface java.util.Collection<E>add in interface java.util.List<E>add in interface IObservableList<E>add in class AbstractObservableList<E>public void add(int index,
java.lang.Object o)
public boolean addAll(java.util.Collection<? extends E> c)
addAll in interface java.util.Collection<E>addAll in interface java.util.List<E>addAll in interface IObservableList<E>addAll in class AbstractObservableList<E>public boolean addAll(int index,
java.util.Collection<? extends E> c)
addAll in interface java.util.List<E>addAll in interface IObservableList<E>addAll in class AbstractObservableList<E>public void clear()
public E get(int index)
get in interface java.util.List<E>get in interface IObservableList<E>get in class java.util.AbstractList<E>public boolean contains(java.lang.Object o)
contains in interface java.util.Collection<E>contains in interface java.util.List<E>contains in interface IObservableList<E>contains in class AbstractObservableList<E>public boolean equals(java.lang.Object o)
equals in interface java.util.Collection<E>equals in interface java.util.List<E>equals in interface IObservableList<E>equals in class AbstractObservableList<E>public int hashCode()
hashCode in interface java.util.Collection<E>hashCode in interface java.util.List<E>hashCode in interface IObservableList<E>hashCode in class AbstractObservableList<E>public int indexOf(java.lang.Object o)
indexOf in interface java.util.List<E>indexOf in interface IObservableList<E>indexOf in class AbstractObservableList<E>public boolean isEmpty()
isEmpty in interface java.util.Collection<E>isEmpty in interface java.util.List<E>isEmpty in interface IObservableList<E>isEmpty in class AbstractObservableList<E>public java.util.Iterator<E> iterator()
iterator in interface java.lang.Iterable<E>iterator in interface java.util.Collection<E>iterator in interface java.util.List<E>iterator in interface IObservableList<E>iterator in class AbstractObservableList<E>public int lastIndexOf(java.lang.Object o)
lastIndexOf in interface java.util.List<E>lastIndexOf in interface IObservableList<E>lastIndexOf in class AbstractObservableList<E>public java.util.ListIterator<E> listIterator(int index)
listIterator in interface java.util.List<E>listIterator in interface IObservableList<E>listIterator in class java.util.AbstractList<E>public E move(int oldIndex, int newIndex)
AbstractObservableListoldIndex to
newIndex. This method is equivalent to calling
add(newIndex, remove(oldIndex)).
Subclasses should override this method to 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.
move in interface IObservableList<E>move in class AbstractObservableList<E>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().ListDiffVisitor.handleMove(int, int, Object),
ListDiff.accept(ListDiffVisitor)public boolean remove(java.lang.Object o)
remove in interface java.util.Collection<E>remove in interface java.util.List<E>remove in interface IObservableList<E>remove in class AbstractObservableList<E>public E remove(int index)
remove in interface java.util.List<E>remove in interface IObservableList<E>remove in class java.util.AbstractList<E>public boolean removeAll(java.util.Collection<?> c)
removeAll in interface java.util.Collection<E>removeAll in interface java.util.List<E>removeAll in interface IObservableList<E>removeAll in class AbstractObservableList<E>public boolean retainAll(java.util.Collection<?> c)
retainAll in interface java.util.Collection<E>retainAll in interface java.util.List<E>retainAll in interface IObservableList<E>retainAll in class AbstractObservableList<E>public E set(int index, E o)
set in interface java.util.List<E>set in interface IObservableList<E>set in class java.util.AbstractList<E>public java.lang.Object[] toArray()
toArray in interface java.util.Collection<E>toArray in interface java.util.List<E>toArray in interface IObservableList<E>toArray in class AbstractObservableList<E>public <T> T[] toArray(T[] a)
toArray in interface java.util.Collection<E>toArray in interface java.util.List<E>toArray in interface IObservableList<E>toArray in class AbstractObservableList<E>public boolean isStale()
IObservableisStale in interface IObservableisStale in class AbstractObservableList<E>public void dispose()
IObservabledispose in interface IObservabledispose in class AbstractObservableList<E>
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.