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, trimToSize
public IndexArrayList()
public IndexArrayList(Collection<E> c)
c
- the cpublic IndexArrayList(int size)
size
- the sizepublic int getSelectedIndex()
IndexList
getSelectedIndex
in interface IndexList<E>
public E getSelectedValue()
IndexList
getSelectedValue
in interface IndexList<E>
public void setSelectedIndex(int value)
IndexList
setSelectedIndex
in interface IndexList<E>
value
- the new selected indexpublic void setSelectedValue(E value)
IndexList
setSelectedValue
in interface IndexList<E>
value
- the new selected valueCopyright © 2010-2020 Toolsverse. All Rights Reserved.