|
PCJ API Version 1.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This interface represents deques of double values. Deques are lists that have specialized (and efficient) methods for adding and removing elements from the beginning and end.
LinkedList,
DoubleStack| Method Summary | |
void |
addFirst(double v)
Adds an element to the beginning of this deque. |
void |
addLast(double v)
Adds an element to the end of this deque. |
double |
getFirst()
Returns the first element of this deque. |
double |
getLast()
Returns the last element of this deque. |
double |
removeFirst()
Removes the first element of this deque. |
double |
removeLast()
Removes the last element of this deque. |
| Methods inherited from interface bak.pcj.list.DoubleList |
add, addAll, get, indexOf, indexOf, lastIndexOf, lastIndexOf, listIterator, listIterator, removeElementAt, set |
| Methods inherited from interface bak.pcj.DoubleCollection |
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, trimToSize |
| Method Detail |
public double getFirst()
IndexOutOfBoundsException - if this deque is empty.public double getLast()
IndexOutOfBoundsException - if this deque is empty.public double removeFirst()
IndexOutOfBoundsException - if this deque is empty.public double removeLast()
IndexOutOfBoundsException - if this deque is empty.public void addFirst(double v)
v - the element to add to this deque.public void addLast(double v)
v - the element to add to this deque.
|
PCJ API Version 1.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||