public interface IObservableList extends List, IObservableCollection
AbstractObservableList
,
ObservableList
Modifier and Type | Method and Description |
---|---|
boolean |
add(Object o) |
boolean |
addAll(Collection c) |
boolean |
addAll(int index,
Collection c) |
void |
addListChangeListener(IListChangeListener listener)
Adds the given list change listener to the list of list change listeners.
|
boolean |
contains(Object o) |
boolean |
containsAll(Collection c) |
boolean |
equals(Object o) |
Object |
get(int index) |
Object |
getElementType()
Returns the element type of this observable collection, or
null if this observable collection is untyped. |
int |
hashCode() |
int |
indexOf(Object o) |
boolean |
isEmpty() |
Iterator |
iterator() |
int |
lastIndexOf(Object o) |
ListIterator |
listIterator() |
ListIterator |
listIterator(int index) |
Object |
move(int oldIndex,
int newIndex)
Moves the element located at
oldIndex to
newIndex . |
Object |
remove(int index) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection c) |
void |
removeListChangeListener(IListChangeListener listener)
Removes the given list change listener from the list of list change listeners.
|
boolean |
retainAll(Collection c) |
Object |
set(int index,
Object element) |
int |
size() |
List |
subList(int fromIndex,
int toIndex) |
Object[] |
toArray() |
Object[] |
toArray(Object[] a) |
addChangeListener, addDisposeListener, addStaleListener, dispose, getRealm, isDisposed, isStale, removeChangeListener, removeDisposeListener, removeStaleListener
void addListChangeListener(IListChangeListener listener)
listener
- void removeListChangeListener(IListChangeListener listener)
listener
- int size()
size
in interface Collection
size
in interface List
boolean isEmpty()
isEmpty
in interface Collection
isEmpty
in interface List
boolean contains(Object o)
contains
in interface Collection
contains
in interface List
Iterator iterator()
Object[] toArray()
toArray
in interface Collection
toArray
in interface List
Object[] toArray(Object[] a)
toArray
in interface Collection
toArray
in interface List
boolean add(Object o)
add
in interface Collection
add
in interface List
boolean remove(Object o)
remove
in interface Collection
remove
in interface List
boolean containsAll(Collection c)
containsAll
in interface Collection
containsAll
in interface List
boolean addAll(Collection c)
addAll
in interface Collection
addAll
in interface List
boolean addAll(int index, Collection c)
boolean removeAll(Collection c)
removeAll
in interface Collection
removeAll
in interface List
boolean retainAll(Collection c)
retainAll
in interface Collection
retainAll
in interface List
boolean equals(Object o)
int hashCode()
Object 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()
.IndexOutOfBoundsException
- if either argument is out of range (0 <= index < size()
).ListDiffVisitor.handleMove(int, int, Object)
,
ListDiff.accept(ListDiffVisitor)
int lastIndexOf(Object o)
lastIndexOf
in interface List
ListIterator listIterator()
listIterator
in interface List
ListIterator listIterator(int index)
listIterator
in interface List
List subList(int fromIndex, int toIndex)
Object getElementType()
IObservableCollection
null
if this observable collection is untyped.getElementType
in interface IObservableCollection
null
if untyped
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.