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
public LinkedList()
public LinkedList(Collection<? extends E> c)
public boolean add(E o)
add
in interface Collection<E>
add
in interface List<E>
add
in class AbstractList<E>
public void clear()
clear
in interface Collection<E>
clear
in interface List<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 AbstractSequentialList<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>
size
in interface List<E>
size
in class AbstractSequentialList<E>
Copyright © 2018. All rights reserved.