public class TLinkedList<E> extends TAbstractSequentialList<E> implements TDeque<E>
modCount
Constructor and Description |
---|
TLinkedList() |
TLinkedList(TCollection<E> coll) |
Modifier and Type | Method and Description |
---|---|
void |
addFirst(E e) |
void |
addLast(E e) |
void |
clear() |
TIterator<E> |
descendingIterator() |
E |
element() |
E |
getFirst() |
E |
getLast() |
TListIterator<E> |
listIterator() |
TListIterator<E> |
listIterator(int index) |
boolean |
offer(E e) |
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
add, equals, equals0, hashCode, indexOf, lastIndexOf, removeRange, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass0, notify0, notifyAll0, wait0, wait0, waitImpl
add, addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, spliterator, stream, toArray, toArray
replaceAll, sort
public TLinkedList()
public TLinkedList(TCollection<E> coll)
public int size()
size
in interface TCollection<E>
public void clear()
clear
in interface TCollection<E>
clear
in class TAbstractList<E>
public TListIterator<E> listIterator()
listIterator
in interface TList<E>
listIterator
in class TAbstractList<E>
public TListIterator<E> listIterator(int index)
listIterator
in interface TList<E>
listIterator
in class TAbstractSequentialList<E>
public boolean offerFirst(E e)
offerFirst
in interface TDeque<E>
public E removeFirst()
removeFirst
in interface TDeque<E>
public E removeLast()
removeLast
in interface TDeque<E>
public boolean removeFirstOccurrence(Object o)
removeFirstOccurrence
in interface TDeque<E>
public boolean removeLastOccurrence(Object o)
removeLastOccurrence
in interface TDeque<E>
public TIterator<E> descendingIterator()
descendingIterator
in interface TDeque<E>
Copyright © 2019. All rights reserved.