Deque
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public <T extends ByteProcedure> T | |
| public <T extends BytePredicate> T | descendingForEach(T predicate)
Applies a |
| public Iterator | |
| public byte | Returns: the head of this deque.Retrieves the first element of this deque but does not remove it. |
| public byte | 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 byte | 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 byte |
| addFirst | back to summary |
|---|---|
| public void addFirst(byte e) Inserts the specified element at the front of this deque. | |
| addLast | back to summary |
|---|---|
| public void addLast(byte e) Inserts the specified element at the end of this deque. | |
| descendingForEach | back to summary |
|---|---|
| public <T extends ByteProcedure> T descendingForEach(T procedure) Applies a | |
| descendingForEach | back to summary |
|---|---|
| public <T extends BytePredicate> T descendingForEach(T predicate) Applies a | |
| descendingIterator | back to summary |
|---|---|
public Iterator
| |
| getFirst | back to summary |
|---|---|
| public byte getFirst() Retrieves the first element of this deque but does not remove it.
| |
| getLast | back to summary |
|---|---|
| public byte getLast() Retrieves the last element of this deque but does not remove it.
| |
| removeFirst | back to summary |
|---|---|
| public int removeFirst(byte e) Removes the first element that equals
| |
| removeFirst | back to summary |
|---|---|
| public byte removeFirst() Retrieves and removes the first element of this deque.
| |
| removeLast | back to summary |
|---|---|
| public int removeLast(byte e) Removes the last element that equals
| |
| removeLast | back to summary |
|---|---|
| public byte removeLast() Retrieves and removes the last element of this deque.
| |