Deque
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public <T extends ObjectProcedure | |
| public <T extends ObjectPredicate | descendingForEach(T predicate)
Applies a |
| public Iterator | |
| public KType | Returns: the head of this deque.Retrieves the first element of this deque but does not remove it. |
| public KType | Returns: the head of this deque.Retrieves the last element of this deque but does not remove it. |
| public int | Returns: The deleted element's index or-1 if the element was not found.Removes the first element that equals |
| public KType | Returns: the head (first) element of this deque.Retrieves and removes the first element of this deque. |
| public int | Returns: The deleted element's index or-1 if the element was not found.Removes the last element that equals |
| public KType |
| addFirst | back to summary |
|---|---|
| public void addFirst(KType e) Inserts the specified element at the front of this deque. | |
| addLast | back to summary |
|---|---|
| public void addLast(KType e) Inserts the specified element at the end of this deque. | |
| descendingForEach | back to summary |
|---|---|
| public <T extends ObjectProcedure Applies a | |
| descendingForEach | back to summary |
|---|---|
| public <T extends ObjectPredicate Applies a | |
| descendingIterator | back to summary |
|---|---|
public Iterator
| |
| getFirst | back to summary |
|---|---|
| public KType getFirst() Retrieves the first element of this deque but does not remove it.
| |
| getLast | back to summary |
|---|---|
| public KType getLast() Retrieves the last element of this deque but does not remove it.
| |
| removeFirst | back to summary |
|---|---|
| public int removeFirst(KType e) Removes the first element that equals
| |
| removeFirst | back to summary |
|---|---|
| public KType removeFirst() Retrieves and removes the first element of this deque.
| |
| removeLast | back to summary |
|---|---|
| public int removeLast(KType e) Removes the last element that equals
| |
| removeLast | back to summary |
|---|---|
| public KType removeLast() Retrieves and removes the last element of this deque.
| |