public final class HashedArrayTree<T> extends AbstractList<T>
modCount| 构造器和说明 |
|---|
HashedArrayTree() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
add(int index,
T elem)
Adds the specified element at the position just before the specified
index.
|
boolean |
add(T elem)
Adds a new element to the HashedArrayTree.
|
T |
get(int index)
Returns the value of the element at the specified position.
|
T |
remove(int index)
Removes the element at the specified position from the HashedArrayTree.
|
T |
set(int index,
T elem)
Sets the element at the specified position to the indicated value.
|
int |
size()
Returns the number of elements in the HashedArrayTree.
|
addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringaddAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArrayparallelStream, removeIf, streampublic int size()
size 在接口中 Collection<T>size 在接口中 List<T>size 在类中 AbstractCollection<T>public boolean add(T elem)
add 在接口中 Collection<T>add 在接口中 List<T>add 在类中 AbstractList<T>elem - The element to add.public T set(int index, T elem)
set 在接口中 List<T>set 在类中 AbstractList<T>index - The index at which to set the value.elem - The element to store at that position.IndexOutOfBoundsException - If index is invalid.public T get(int index)
get 在接口中 List<T>get 在类中 AbstractList<T>index - The index at which to query.IndexOutOfBoundsException - If the index is invalid.public void add(int index,
T elem)
add 在接口中 List<T>add 在类中 AbstractList<T>index - The index just before which to insert.elem - The value to insertIndexOutOfBoundsException - if the index is invalid.public T remove(int index)
remove 在接口中 List<T>remove 在类中 AbstractList<T>index - The index of the element to remove.IndexOutOfBoundsException - If the index is invalid.Copyright © 2016. All rights reserved.