abstract
boolean
|
add(E e)
Appends the specified element to the end of this list (optional
operation).
|
abstract
void
|
add(int index, E element)
Inserts the specified element at the specified position in this list
(optional operation).
|
abstract
boolean
|
addAll(Collection<? extends E> 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).
|
abstract
boolean
|
addAll(int index, Collection<? extends E> c)
Inserts all of the elements in the specified collection into this
list at the specified position (optional operation).
|
default
void
|
addFirst(E e)
Adds an element as the first element of this collection (optional operation).
|
default
void
|
addLast(E e)
Adds an element as the last element of this collection (optional operation).
|
abstract
void
|
clear()
Removes all of the elements from this list (optional operation).
|
abstract
boolean
|
contains(Object o)
Returns true if this list contains the specified element.
|
abstract
boolean
|
containsAll(Collection<?> c)
Returns true if this list contains all of the elements of the
specified collection.
|
static
<E>
List<E>
|
copyOf(Collection<? extends E> coll)
Returns an unmodifiable List containing the elements of
the given Collection, in its iteration order.
|
abstract
boolean
|
equals(Object o)
Compares the specified object with this list for equality.
|
abstract
E
|
get(int index)
Returns the element at the specified position in this list.
|
default
E
|
getFirst()
Gets the first element of this collection.
|
default
E
|
getLast()
Gets the last element of this collection.
|
abstract
int
|
hashCode()
Returns the hash code value for this list.
|
abstract
int
|
indexOf(Object o)
Returns the index of the first occurrence of the specified element
in this list, or -1 if this list does not contain the element.
|
abstract
boolean
|
isEmpty()
Returns true if this list contains no elements.
|
abstract
Iterator<E>
|
iterator()
Returns an iterator over the elements in this list in proper sequence.
|
abstract
int
|
lastIndexOf(Object o)
Returns the index of the last occurrence of the specified element
in this list, or -1 if this list does not contain the element.
|
abstract
ListIterator<E>
|
listIterator(int index)
Returns a list iterator over the elements in this list (in proper
sequence), starting at the specified position in the list.
|
abstract
ListIterator<E>
|
listIterator()
Returns a list iterator over the elements in this list (in proper
sequence).
|
static
<E>
List<E>
|
of(E e1, E e2, E e3)
Returns an unmodifiable list containing three elements.
|
static
<E>
List<E>
|
of(E e1, E e2, E e3, E e4, E e5, E e6, E e7, E e8, E e9)
Returns an unmodifiable list containing nine elements.
|
static
<E>
List<E>
|
of(E e1, E e2, E e3, E e4, E e5)
Returns an unmodifiable list containing five elements.
|
static
<E>
List<E>
|
of(E e1, E e2, E e3, E e4, E e5, E e6)
Returns an unmodifiable list containing six elements.
|
static
<E>
List<E>
|
of(E e1, E e2, E e3, E e4, E e5, E e6, E e7, E e8)
Returns an unmodifiable list containing eight elements.
|
static
<E>
List<E>
|
of(E... elements)
Returns an unmodifiable list containing an arbitrary number of elements.
|
static
<E>
List<E>
|
of()
Returns an unmodifiable list containing zero elements.
|
static
<E>
List<E>
|
of(E e1, E e2, E e3, E e4, E e5, E e6, E e7, E e8, E e9, E e10)
Returns an unmodifiable list containing ten elements.
|
static
<E>
List<E>
|
of(E e1, E e2)
Returns an unmodifiable list containing two elements.
|
static
<E>
List<E>
|
of(E e1, E e2, E e3, E e4, E e5, E e6, E e7)
Returns an unmodifiable list containing seven elements.
|
static
<E>
List<E>
|
of(E e1, E e2, E e3, E e4)
Returns an unmodifiable list containing four elements.
|
static
<E>
List<E>
|
of(E e1)
Returns an unmodifiable list containing one element.
|
abstract
E
|
remove(int index)
Removes the element at the specified position in this list (optional
operation).
|
abstract
boolean
|
remove(Object o)
Removes the first occurrence of the specified element from this list,
if it is present (optional operation).
|
abstract
boolean
|
removeAll(Collection<?> c)
Removes from this list all of its elements that are contained in the
specified collection (optional operation).
|
default
E
|
removeFirst()
Removes and returns the first element of this collection (optional operation).
|
default
E
|
removeLast()
Removes and returns the last element of this collection (optional operation).
|
default
void
|
replaceAll(UnaryOperator<E> operator)
Replaces each element of this list with the result of applying the
operator to that element.
|
abstract
boolean
|
retainAll(Collection<?> c)
Retains only the elements in this list that are contained in the
specified collection (optional operation).
|
default
List<E>
|
reversed()
Returns a reverse-ordered view of this collection.
|
abstract
E
|
set(int index, E element)
Replaces the element at the specified position in this list with the
specified element (optional operation).
|
abstract
int
|
size()
Returns the number of elements in this list.
|
default
void
|
sort(Comparator<? super E> c)
Sorts this list according to the order induced by the specified
Comparator .
|
default
Spliterator<E>
|
spliterator()
Creates a Spliterator over the elements in this list.
|
abstract
List<E>
|
subList(int fromIndex, int toIndex)
Returns a view of the portion of this list between the specified
fromIndex , inclusive, and toIndex , exclusive.
|
abstract
Object[]
|
toArray()
Returns an array containing all of the elements in this list in proper
sequence (from first to last element).
|
abstract
<T>
T[]
|
toArray(T[] a)
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.
|