Class DoublyLinkedList<T>
- java.lang.Object
-
- edu.berkeley.cs.jqf.instrument.util.DoublyLinkedList<T>
-
-
Constructor Summary
Constructors Constructor Description DoublyLinkedList()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addFirst(T value)
void
addLast(T value)
void
clear()
boolean
isEmpty()
Iterator<T>
iterator()
T
peek()
T
pop()
void
push(T item)
boolean
remove(T item)
T
removeFirst()
T
removeLast()
int
size()
void
synchronizedAddFirst(T item)
void
synchronizedAddLast(T item)
boolean
synchronizedRemove(T item)
T
synchronizedRemoveFirst()
T
synchronizedRemoveLast()
String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
addFirst
public void addFirst(T value)
-
addLast
public void addLast(T value)
-
removeFirst
public T removeFirst()
-
removeLast
public T removeLast()
-
remove
public boolean remove(T item)
-
size
public int size()
-
synchronizedAddFirst
public void synchronizedAddFirst(T item)
-
synchronizedAddLast
public void synchronizedAddLast(T item)
-
synchronizedRemove
public boolean synchronizedRemove(T item)
-
synchronizedRemoveFirst
public T synchronizedRemoveFirst()
-
synchronizedRemoveLast
public T synchronizedRemoveLast()
-
-