E
- element type.public class LinkedList<E> extends AbstractSequentialList<E> implements Cloneable, List<E>, Deque<E>, Serializable
modCount
Constructor and Description |
---|
LinkedList() |
LinkedList(Collection<? extends E> c) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(E o) |
void |
addFirst(E o) |
void |
addLast(E o) |
void |
clear() |
Object |
clone() |
Iterator<E> |
descendingIterator() |
E |
element() |
E |
getFirst() |
E |
getLast() |
ListIterator<E> |
listIterator(int index) |
boolean |
offer(E o) |
boolean |
offerFirst(E e) |
boolean |
offerLast(E e) |
E |
peek() |
E |
peekFirst() |
E |
peekLast() |
E |
poll() |
E |
pollFirst() |
E |
pollLast() |
E |
pop() |
void |
push(E e) |
E |
remove() |
E |
removeFirst() |
boolean |
removeFirstOccurrence(Object o) |
E |
removeLast() |
boolean |
removeLastOccurrence(Object o) |
int |
size() |
add, addAll, get, iterator, remove, set
equals, hashCode, indexOf, lastIndexOf, listIterator, removeRange, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
add, addAll, get, indexOf, lastIndexOf, listIterator, remove, replaceAll, set, sort, spliterator, subList
addAll, contains, containsAll, isEmpty, parallelStream, remove, removeAll, removeIf, retainAll, stream, toArray, toArray
public LinkedList()
public LinkedList(Collection<? extends E> c)
public boolean add(E o)
add
in interface Collection<E>
add
in class AbstractList<E>
public void clear()
clear
in interface Collection<E>
clear
in class AbstractList<E>
public Object clone()
public Iterator<E> descendingIterator()
descendingIterator
in interface Deque<E>
public ListIterator<E> listIterator(int index)
listIterator
in interface List<E>
listIterator
in class AbstractList<E>
public boolean offerFirst(E e)
offerFirst
in interface Deque<E>
public E removeFirst()
removeFirst
in interface Deque<E>
public boolean removeFirstOccurrence(Object o)
removeFirstOccurrence
in interface Deque<E>
public E removeLast()
removeLast
in interface Deque<E>
public boolean removeLastOccurrence(Object o)
removeLastOccurrence
in interface Deque<E>
public int size()
size
in interface Collection<E>
Copyright © 2018. All rights reserved.