@Generated(date="2017-07-11T19:16:23+0200",
value="KTypeDeque.java")
public interface ShortDeque
extends ShortCollection
shorts.| Modifier and Type | Method and Description |
|---|---|
void |
addFirst(short e1)
Inserts the specified element at the front of this deque.
|
void |
addLast(short e1)
Inserts the specified element at the end of this deque.
|
<T extends ShortPredicate> |
descendingForEach(T predicate)
Applies a
predicate to container elements as long, as the predicate
returns true. |
<T extends ShortProcedure> |
descendingForEach(T procedure)
Applies a
procedure to all container elements. |
java.util.Iterator<ShortCursor> |
descendingIterator() |
short |
getFirst()
Retrieves, but does not remove, the first element of this deque.
|
short |
getLast()
Retrieves, but does not remove, the last element of this deque.
|
short |
removeFirst()
Retrieves and removes the first element of this deque.
|
int |
removeFirst(short e1)
Removes the first element that equals
e1, returning its
deleted position or -1 if the element was not found. |
short |
removeLast()
Retrieves and removes the last element of this deque.
|
int |
removeLast(short e1)
Removes the last element that equals
e1, returning its
deleted position or -1 if the element was not found. |
clear, removeAll, removeAll, removeAll, retainAll, retainAllint removeFirst(short e1)
e1, returning its
deleted position or -1 if the element was not found.int removeLast(short e1)
e1, returning its
deleted position or -1 if the element was not found.void addFirst(short e1)
e1 - the element to addvoid addLast(short e1)
e1 - the element to addshort removeFirst()
java.lang.AssertionError - if this deque is empty and assertions are enabled.short removeLast()
java.lang.AssertionError - if this deque is empty and assertions are enabled.short getFirst()
java.lang.AssertionError - if this deque is empty and assertions are enabled.short getLast()
java.lang.AssertionError - if this deque is empty and assertions are enabled.java.util.Iterator<ShortCursor> descendingIterator()
<T extends ShortProcedure> T descendingForEach(T procedure)
procedure to all container elements.<T extends ShortPredicate> T descendingForEach(T predicate)
predicate to container elements as long, as the predicate
returns true. The iteration is interrupted otherwise.Copyright © 2017. All rights reserved.