public class LXComponentArray<T extends LXComponent> extends Object implements List<T>
Modifier and Type | Class and Description |
---|---|
static interface |
LXComponentArray.Listener<T> |
Constructor and Description |
---|
LXComponentArray() |
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 |
addListener(LXComponentArray.Listener<T> listener) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
void |
dispose() |
T |
get(int index) |
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) |
void |
removeListener(LXComponentArray.Listener<T> listener) |
boolean |
retainAll(Collection<?> c) |
T |
set(int index,
T element) |
int |
size() |
List<T> |
subList(int fromIndex,
int toIndex) |
Object[] |
toArray() |
<U> U[] |
toArray(U[] a) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals, hashCode, replaceAll, sort, spliterator
parallelStream, removeIf, stream
public void addListener(LXComponentArray.Listener<T> listener)
public void removeListener(LXComponentArray.Listener<T> listener)
public int size()
size
in interface Collection<T extends LXComponent>
size
in interface List<T extends LXComponent>
public boolean isEmpty()
isEmpty
in interface Collection<T extends LXComponent>
isEmpty
in interface List<T extends LXComponent>
public boolean contains(Object o)
contains
in interface Collection<T extends LXComponent>
contains
in interface List<T extends LXComponent>
public Iterator<T> iterator()
iterator
in interface Iterable<T extends LXComponent>
iterator
in interface Collection<T extends LXComponent>
iterator
in interface List<T extends LXComponent>
public Object[] toArray()
toArray
in interface Collection<T extends LXComponent>
toArray
in interface List<T extends LXComponent>
public <U> U[] toArray(U[] a)
toArray
in interface Collection<T extends LXComponent>
toArray
in interface List<T extends LXComponent>
public boolean add(T e)
add
in interface Collection<T extends LXComponent>
add
in interface List<T extends LXComponent>
public void add(int index, T element)
add
in interface List<T extends LXComponent>
public boolean remove(Object o)
remove
in interface Collection<T extends LXComponent>
remove
in interface List<T extends LXComponent>
public T remove(int index)
remove
in interface List<T extends LXComponent>
public boolean containsAll(Collection<?> c)
containsAll
in interface Collection<T extends LXComponent>
containsAll
in interface List<T extends LXComponent>
public boolean addAll(Collection<? extends T> c)
addAll
in interface Collection<T extends LXComponent>
addAll
in interface List<T extends LXComponent>
public boolean addAll(int index, Collection<? extends T> c)
addAll
in interface List<T extends LXComponent>
public boolean removeAll(Collection<?> c)
removeAll
in interface Collection<T extends LXComponent>
removeAll
in interface List<T extends LXComponent>
public boolean retainAll(Collection<?> c)
retainAll
in interface Collection<T extends LXComponent>
retainAll
in interface List<T extends LXComponent>
public void clear()
clear
in interface Collection<T extends LXComponent>
clear
in interface List<T extends LXComponent>
public T get(int index)
get
in interface List<T extends LXComponent>
public int indexOf(Object o)
indexOf
in interface List<T extends LXComponent>
public int lastIndexOf(Object o)
lastIndexOf
in interface List<T extends LXComponent>
public ListIterator<T> listIterator()
listIterator
in interface List<T extends LXComponent>
public ListIterator<T> listIterator(int index)
listIterator
in interface List<T extends LXComponent>
public List<T> subList(int fromIndex, int toIndex)
subList
in interface List<T extends LXComponent>
public void dispose()
LX library by Mark C. Slee. © 2012-2020