public class ObservableList<T> extends ListenerList<T,ListChangeEvent<T>,IListChangeListener<T>> implements IObservableList<T>
| Constructor and Description |
|---|
ObservableList() |
ObservableList(Collection<T> list) |
ObservableList(int size) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
T element) |
boolean |
add(T e) |
boolean |
addAll(Collection<? extends T> c) |
boolean |
addAll(int index,
Collection<? extends T> c) |
void |
clear()
Remove all listeners.
|
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
boolean |
equals(Object o) |
T |
get(int index) |
Comparator<T> |
getComparator()
When set the list will be kept ordered.
|
int |
hashCode() |
int |
indexOf(Object o) |
boolean |
isEmpty() |
Iterator<T> |
iterator() |
int |
lastIndexOf(Object o) |
ListIterator<T> |
listIterator() |
ListIterator<T> |
listIterator(int index) |
T |
remove(int index) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
T |
set(int index,
T element) |
void |
setComparator(Comparator<T> comparator)
Sets a new comparator to use.
|
int |
size() |
List<T> |
subList(int fromIndex,
int toIndex) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
addChangeListener, fireEvent, removeChangeListenerclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitreplaceAll, sort, spliteratorparallelStream, removeIf, streamaddChangeListener, removeChangeListenerpublic ObservableList()
public ObservableList(@Nonnull Collection<T> list)
public ObservableList(int size)
public int size()
public boolean isEmpty()
public boolean contains(Object o)
public Object[] toArray()
public <T> T[] toArray(T[] a)
public boolean add(T e)
add in interface Collection<T>add in interface List<T>add in interface IObservableList<T>public boolean remove(Object o)
public boolean containsAll(Collection<?> c)
containsAll in interface Collection<T>containsAll in interface List<T>public boolean addAll(Collection<? extends T> c)
public boolean addAll(int index,
Collection<? extends T> c)
public boolean removeAll(Collection<?> c)
public boolean retainAll(Collection<?> c)
public void clear()
ListenerListclear in interface Collection<T>clear in interface List<T>clear in class ListenerList<T,ListChangeEvent<T>,IListChangeListener<T>>public boolean equals(Object o)
public int hashCode()
public void add(int index,
T element)
public T remove(int index)
public int lastIndexOf(Object o)
lastIndexOf in interface List<T>public ListIterator<T> listIterator()
listIterator in interface List<T>public ListIterator<T> listIterator(int index)
listIterator in interface List<T>@Nullable public Comparator<T> getComparator()
public void setComparator(@Nullable Comparator<T> comparator) throws Exception
comparator - ExceptionCopyright © 2017 etc.to. All rights reserved.