|
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 boolean values. Deques are lists that have specialized (and efficient) methods for adding and removing elements from the beginning and end.
LinkedList
,
BooleanStack
Method Summary | |
void |
addFirst(boolean v)
Adds an element to the beginning of this deque. |
void |
addLast(boolean v)
Adds an element to the end of this deque. |
boolean |
getFirst()
Returns the first element of this deque. |
boolean |
getLast()
Returns the last element of this deque. |
boolean |
removeFirst()
Removes the first element of this deque. |
boolean |
removeLast()
Removes the last element of this deque. |
Methods inherited from interface bak.pcj.list.BooleanList |
add, addAll, get, indexOf, indexOf, lastIndexOf, lastIndexOf, listIterator, listIterator, removeElementAt, set |
Methods inherited from interface bak.pcj.BooleanCollection |
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, trimToSize |
Method Detail |
public boolean getFirst()
IndexOutOfBoundsException
- if this deque is empty.public boolean getLast()
IndexOutOfBoundsException
- if this deque is empty.public boolean removeFirst()
IndexOutOfBoundsException
- if this deque is empty.public boolean removeLast()
IndexOutOfBoundsException
- if this deque is empty.public void addFirst(boolean v)
v
- the element to add to this deque.public void addLast(boolean 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 |