@Generated(date="2015-05-05T11:00:03+0200", value="KTypeDeque.java") public interface ShortDeque extends ShortCollection
Deque
Modifier and Type | Method and Description |
---|---|
void |
addFirst(short e)
Inserts the specified element at the front of this deque.
|
void |
addLast(short e)
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 elements in tail-to-head order. |
java.util.Iterator<ShortCursor> |
descendingIterator() |
short |
getFirst()
Retrieves the first element of this deque but does not remove it.
|
short |
getLast()
Retrieves the last element of this deque but does not remove it.
|
short |
removeFirst()
Retrieves and removes the first element of this deque.
|
int |
removeFirst(short e)
Removes the first element that equals
e . |
short |
removeLast()
Retrieves and removes the last element of this deque.
|
int |
removeLast(short e)
Removes the last element that equals
e . |
clear, release, removeAll, removeAll, removeAll, retainAll, retainAll
int removeFirst(short e)
e
.-1
if the element
was not found.int removeLast(short e)
e
.-1
if the element
was not found.void addFirst(short e)
void addLast(short e)
short removeFirst()
short removeLast()
short getFirst()
short getLast()
java.util.Iterator<ShortCursor> descendingIterator()
<T extends ShortProcedure> T descendingForEach(T procedure)
procedure
to all elements in tail-to-head order.<T extends ShortPredicate> T descendingForEach(T predicate)
predicate
to container elements as long, as the
predicate returns true
. The iteration is interrupted
otherwise.Copyright © 2015 Carrot Search s.c.. All Rights Reserved.