List Methods
The following List methods are supported for use in manipulating a range of values.
Type | Method | Notes |
---|---|---|
boolean | add(E o) | Appends the specified element to the end of this list. |
void | add(int index, E element) | Inserts the specified element at the specified position in this list. |
void | clear() | Removes all of the elements from this list. |
boolean | contains(Object o) | Returns true if this list contains the specified element. |
E | get(int index) | Returns the element at the specified position in this list. |
boolean | isEmpty() | Returns true if this list contains no elements. |
ListIterator<E> | listIterator() | Returns a list iterator of the elements in this list (in proper sequence). |
E | remove(int index) | Removes the element at the specified position in this list. |
boolean | remove(Object o) | Removes the first occurrence in this list of the specified element. |
E | set(int index, E element) | Replaces the element at the specified position in this list with the specified element. |
int | size() | Returns the number of elements in this list. |
List | subList(int fromIndex, int toIndex) | Returns a view of the portion of this list between the specified fromIndex, inclusive, and toIndex, exclusive. |
boolean | addAll(Collection c) | Appends all of the elements in the specified collection to the end of this list, in the order that they are returned by the specified collection's iterator (optional operation). |
Copyright © Cloud Software Group, Inc. All rights reserved.