| Constructor and Description |
|---|
FastSizeDeque(Deque<E> deque)
Creates a decorator.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E e) |
boolean |
addAll(@NotNull Collection<? extends E> col)
Adds all of the elements in the specified collection at the end of this deque.
|
void |
addFirst(E e) |
void |
addLast(E e) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(@NotNull Collection<?> col) |
@NotNull Iterator<E> |
descendingIterator() |
E |
element() |
E |
getFirst() |
E |
getLast() |
boolean |
isEmpty() |
boolean |
isEmptyx()
Tests this deque for emptiness.; equivalent to
sizex() == 0. |
@NotNull Iterator<E> |
iterator() |
boolean |
offer(E e) |
boolean |
offerFirst(E e) |
boolean |
offerLast(E e) |
E |
peek() |
E |
peekFirst() |
E |
peekLast() |
E |
poll() |
E |
pollFirst() |
E |
pollLast() |
E |
pop() |
void |
push(E e) |
E |
remove() |
boolean |
remove(Object o) |
boolean |
removeAll(@NotNull Collection<?> col) |
E |
removeFirst() |
boolean |
removeFirstOccurrence(Object o) |
boolean |
removeIf(Predicate<? super E> pred) |
E |
removeLast() |
boolean |
removeLastOccurrence(Object o) |
boolean |
retainAll(@NotNull Collection<?> col) |
int |
size() |
int |
sizex()
Fast size getter.
|
@NotNull Object[] |
toArray() |
<T> T[] |
toArray(T[] ts) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, hashCode, parallelStream, spliterator, streampublic int sizex()
public boolean isEmptyx()
sizex() == 0.True if this deque is empty.public boolean offerFirst(E e)
offerFirst in interface Deque<E>public E removeFirst()
removeFirst in interface Deque<E>public E removeLast()
removeLast in interface Deque<E>public boolean removeFirstOccurrence(Object o)
removeFirstOccurrence in interface Deque<E>public boolean removeLastOccurrence(Object o)
removeLastOccurrence in interface Deque<E>public boolean add(E e)
public boolean offer(E e)
public E remove()
public E poll()
public E element()
public E peek()
public boolean remove(Object o)
public boolean containsAll(@NotNull
@NotNull Collection<?> col)
containsAll in interface Collection<E>public boolean addAll(@NotNull
@NotNull Collection<? extends E> col)
size() can report incorrect value.addAll in interface Collection<E>col - The elements to be inserted into this deque.true if this deque changed as a result of the call.public boolean removeAll(@NotNull
@NotNull Collection<?> col)
removeAll in interface Collection<E>public boolean removeIf(Predicate<? super E> pred)
removeIf in interface Collection<E>public boolean retainAll(@NotNull
@NotNull Collection<?> col)
retainAll in interface Collection<E>public void clear()
clear in interface Collection<E>public boolean contains(Object o)
public int size()
public boolean isEmpty()
isEmpty in interface Collection<E>@NotNull public @NotNull Object[] toArray()
toArray in interface Collection<E>@NotNull
public <T> T[] toArray(@NotNull
T[] ts)
toArray in interface Collection<E>@NotNull public @NotNull Iterator<E> descendingIterator()
descendingIterator in interface Deque<E>
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.8.1 Release Date : May 21 2020