E
- the type of elements in this list
Serializable
, Cloneable
, Iterable<E>
, Collection<E>
, List<E>
, RandomAccess
, SequencedCollection<E>
AttributeList
, RoleList
, RoleUnresolvedList
Constructors
Constructs an empty list with an initial capacity of ten.
Constructs an empty list with the specified initial capacity.
Constructs a list containing the elements of the specified collection, in the order they are returned by the collection's iterator.
void
add(int index, E element)
Inserts the specified element at the specified position in this list.
boolean
Appends the specified element to the end of this list.
boolean
Inserts all of the elements in the specified collection into this list, starting at the specified position.
boolean
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.
void
Adds an element as the first element of this collection (optional operation).
void
Adds an element as the last element of this collection (optional operation).
void
Removes all of the elements from this list.
Returns a shallow copy of this ArrayList
instance.
boolean
Returns true
if this list contains the specified element.
void
Increases the capacity of this ArrayList
instance, if necessary, to ensure that it can hold at least the number of elements specified by the minimum capacity argument.
boolean
Compares the specified object with this list for equality.
void
Performs the given action for each element of the Iterable
until all elements have been processed or the action throws an exception.
Returns the element at the specified position in this list.
Gets the first element of this collection.
Gets the last element of this collection.
int
Returns the hash code value for this list.
int
Returns the index of the first occurrence of the specified element in this list, or -1 if this list does not contain the element.
boolean
Returns true
if this list contains no elements.
Returns an iterator over the elements in this list in proper sequence.
int
Returns the index of the last occurrence of the specified element in this list, or -1 if this list does not contain the element.
Returns a list iterator over the elements in this list (in proper sequence).
Returns a list iterator over the elements in this list (in proper sequence), starting at the specified position in the list.
Removes the element at the specified position in this list.
boolean
Removes the first occurrence of the specified element from this list, if it is present.
boolean
Removes from this list all of its elements that are contained in the specified collection.
Removes and returns the first element of this collection (optional operation).
boolean
Removes all of the elements of this collection that satisfy the given predicate (optional operation).
Removes and returns the last element of this collection (optional operation).
protected void
Removes from this list all of the elements whose index is between fromIndex
, inclusive, and toIndex
, exclusive.
boolean
Retains only the elements in this list that are contained in the specified collection.
set(int index, E element)
Replaces the element at the specified position in this list with the specified element.
int
Returns the number of elements in this list.
subList(int fromIndex, int toIndex)
Returns a view of the portion of this list between the specified fromIndex
, inclusive, and toIndex
, exclusive.
Returns an array containing all of the elements in this list in proper sequence (from first to last element).
<T> T[]
Returns an array containing all of the elements in this list in proper sequence (from first to last element); the runtime type of the returned array is that of the specified array.
void
Trims the capacity of this ArrayList
instance to be the list's current size.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4