@Generated(date="2015-05-07T09:33:04+0200", value="KTypeDeque.java") public interface ObjectDeque<KType> extends ObjectCollection<KType>
Deque
Modifier and Type | Method and Description |
---|---|
void |
addFirst(KType e)
Inserts the specified element at the front of this deque.
|
void |
addLast(KType e)
Inserts the specified element at the end of this deque.
|
<T extends ObjectPredicate<? super KType>> |
descendingForEach(T predicate)
Applies a
predicate to container elements as long, as the
predicate returns true . |
<T extends ObjectProcedure<? super KType>> |
descendingForEach(T procedure)
Applies a
procedure to all elements in tail-to-head order. |
java.util.Iterator<ObjectCursor<KType>> |
descendingIterator() |
KType |
getFirst()
Retrieves the first element of this deque but does not remove it.
|
KType |
getLast()
Retrieves the last element of this deque but does not remove it.
|
KType |
removeFirst()
Retrieves and removes the first element of this deque.
|
int |
removeFirst(KType e)
Removes the first element that equals
e . |
KType |
removeLast()
Retrieves and removes the last element of this deque.
|
int |
removeLast(KType e)
Removes the last element that equals
e . |
clear, release, removeAll, removeAll, removeAll, retainAll, retainAll
int removeFirst(KType e)
e
.-1
if the element
was not found.int removeLast(KType e)
e
.-1
if the element
was not found.void addFirst(KType e)
void addLast(KType e)
KType removeFirst()
KType removeLast()
KType getFirst()
KType getLast()
java.util.Iterator<ObjectCursor<KType>> descendingIterator()
<T extends ObjectProcedure<? super KType>> T descendingForEach(T procedure)
procedure
to all elements in tail-to-head order.<T extends ObjectPredicate<? super KType>> 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.