@Generated(date="2017-07-11T19:16:23+0200",
value="KTypeDeque.java")
public interface ObjectDeque<KType>
extends ObjectCollection<KType>
Objects.| Modifier and Type | Method and Description |
|---|---|
void |
addFirst(KType e1)
Inserts the specified element at the front of this deque.
|
void |
addLast(KType e1)
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 container elements. |
java.util.Iterator<ObjectCursor<KType>> |
descendingIterator() |
KType |
getFirst()
Retrieves, but does not remove, the first element of this deque.
|
KType |
getLast()
Retrieves, but does not remove, the last element of this deque.
|
KType |
removeFirst()
Retrieves and removes the first element of this deque.
|
int |
removeFirst(KType e1)
Removes the first element that equals
e1, returning its
deleted position or -1 if the element was not found. |
KType |
removeLast()
Retrieves and removes the last element of this deque.
|
int |
removeLast(KType 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(KType e1)
e1, returning its
deleted position or -1 if the element was not found.int removeLast(KType e1)
e1, returning its
deleted position or -1 if the element was not found.void addFirst(KType e1)
e1 - the element to addvoid addLast(KType e1)
e1 - the element to addKType removeFirst()
java.lang.AssertionError - if this deque is empty and assertions are enabled.KType removeLast()
java.lang.AssertionError - if this deque is empty and assertions are enabled.KType getFirst()
java.lang.AssertionError - if this deque is empty and assertions are enabled.KType getLast()
java.lang.AssertionError - if this deque is empty and assertions are enabled.java.util.Iterator<ObjectCursor<KType>> descendingIterator()
<T extends ObjectProcedure<? super KType>> T descendingForEach(T procedure)
procedure to all container elements.<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 © 2017. All rights reserved.