public class IndexArrayList<E> extends ArrayList<E> implements IndexList<E>
| Constructor and Description |
|---|
IndexArrayList()
Instantiates a new index array list.
|
IndexArrayList(Collection<E> c)
Instantiates a new index array list.
|
IndexArrayList(int size)
Instantiates a new index array list.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getSelectedIndex()
Gets the selected index.
|
E |
getSelectedValue()
Gets the selected value.
|
void |
setSelectedIndex(int value)
Sets the selected index.
|
void |
setSelectedValue(E value)
Sets the selected value.
|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizepublic IndexArrayList()
public IndexArrayList(Collection<E> c)
c - the cpublic IndexArrayList(int size)
size - the sizepublic int getSelectedIndex()
IndexListgetSelectedIndex in interface IndexList<E>public E getSelectedValue()
IndexListgetSelectedValue in interface IndexList<E>public void setSelectedIndex(int value)
IndexListsetSelectedIndex in interface IndexList<E>value - the new selected indexpublic void setSelectedValue(E value)
IndexListsetSelectedValue in interface IndexList<E>value - the new selected valueCopyright © 2010-2020 Toolsverse. All Rights Reserved.