java.lang.Object | |||
java.util.AbstractCollection<E> | Collection<E> | ||
java.util.AbstractList<E> | List<E> |
AbstractList is an abstract implementation of the List interface, optimized for a backing store which supports random access. This implementation does not support adding or replacing. A subclass must implement the abstract methods get() and size().
protected | int | modCount |
AbstractList() | ||||||
Constructs a new instance of this AbstractList. |
void | add(int location, E object) | |||||
Inserts the specified object into this List at the specified location. | ||||||
boolean | add(E object) | |||||
Adds the specified object at the end of this List. | ||||||
boolean | addAll(int location, Collection<? extends E> collection) | |||||
Inserts the objects in the specified Collection at the specified location in this List. | ||||||
void | clear() | |||||
Removes all elements from this List, leaving it empty. | ||||||
boolean | equals(Object object) | |||||
Compares the specified object to this List and answer if they are equal. | ||||||
abstract | E | get(int location) | ||||
Returns the element at the specified location in this List. | ||||||
int | hashCode() | |||||
Returns an integer hash code for the receiver. | ||||||
int | indexOf(Object object) | |||||
Searches this List for the specified object and returns the index of the first occurrence. | ||||||
Iterator<E> | iterator() | |||||
Returns an Iterator on the elements of this List. | ||||||
int | lastIndexOf(Object object) | |||||
Searches this List for the specified object and returns the index of the last occurrence. | ||||||
ListIterator<E> | listIterator() | |||||
Returns a ListIterator on the elements of this List. | ||||||
ListIterator<E> | listIterator(int location) | |||||
Returns a ListIterator on the elements of this List. | ||||||
E | remove(int location) | |||||
Removes the object at the specified location from this List. | ||||||
E | set(int location, E object) | |||||
Replaces the element at the specified location in this List with the specified object. | ||||||
List<E> | subList(int start, int end) | |||||
Returns a part of consecutive elements of this list as a view. |
void | removeRange(int start, int end) | |||||
Removes the objects in the specified range from the start to the, but not including, end index. |
location | the index at which to insert |
---|---|
object | the object to add |
UnsupportedOperationException | when adding to this List is not supported |
---|---|
ClassCastException | when the class of the object is inappropriate for this List |
IllegalArgumentException | when the object cannot be added to this List |
IndexOutOfBoundsException | when location < 0 || >= size()
|
object | the object to add |
---|
UnsupportedOperationException | when adding to this List is not supported |
---|---|
ClassCastException | when the class of the object is inappropriate for this List |
IllegalArgumentException | when the object cannot be added to this List |
location | the index at which to insert |
---|---|
collection | the Collection of objects |
UnsupportedOperationException | when adding to this List is not supported |
---|---|
ClassCastException | when the class of an object is inappropriate for this List |
IllegalArgumentException | when an object cannot be added to this List |
IndexOutOfBoundsException | when location < 0 || >= size()
|
UnsupportedOperationException | when removing from this List is not supported |
---|
object | the object to compare with this object |
---|
location | the index of the element to return |
---|
IndexOutOfBoundsException | when location < 0 || >= size()
|
---|
object | the object to search for |
---|
object | the object to search for |
---|
location | the index at which to start the iteration |
---|
IndexOutOfBoundsException | when location < 0 || >= size() |
---|
location | the index of the object to remove |
---|
UnsupportedOperationException | when removing from this List is not supported |
---|---|
IndexOutOfBoundsException | when location < 0 || >= size()
|
location | the index at which to put the specified object |
---|---|
object | the object to add |
UnsupportedOperationException | when replacing elements in this List is not supported |
---|---|
ClassCastException | when the class of an object is inappropriate for this List |
IllegalArgumentException | when an object cannot be added to this List |
IndexOutOfBoundsException | when location < 0 || >= size()
|
start | start index of the subList, include start |
---|---|
end | end index of the subList, exclude end |
IndexOutOfBoundsException | when (start < 0 || end > size()) |
---|---|
IllegalArgumentException | when (start > end) |
start | the index at which to start removing |
---|---|
end | the index one past the end of the range to remove |
UnsupportedOperationException | when removing from this List is not supported |
---|---|
IndexOutOfBoundsException | when start < 0
|
Copyright 2007 Google Inc. | Build 0.9_r1-98467 - 14 Aug 2008 18:48 |