Package org.redisson.api
Interface RDequeRx<V>
-
- Type Parameters:
V
- the type of elements held in this collection
- All Superinterfaces:
RCollectionRx<V>
,RExpirableRx
,RObjectRx
,RQueueRx<V>
- All Known Subinterfaces:
RBlockingDequeRx<V>
public interface RDequeRx<V> extends RQueueRx<V>
RxJava2 interface for Deque object- Author:
- Nikita Koksharov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description io.reactivex.Flowable<Void>
addFirst(V e)
Adds element at the head of this deque.io.reactivex.Flowable<Void>
addLast(V e)
Adds element at the tail of this deque.io.reactivex.Flowable<V>
descendingIterator()
io.reactivex.Flowable<V>
getLast()
Returns element at the tail of this deque ornull
if there are no elements in deque.io.reactivex.Flowable<Boolean>
offerFirst(V e)
Adds element at the head of this deque.io.reactivex.Flowable<Boolean>
offerLast(V e)
Adds element at the tail of this deque.io.reactivex.Flowable<V>
peekFirst()
Returns element at the head of this deque ornull
if there are no elements in deque.io.reactivex.Flowable<V>
peekLast()
Returns element at the tail of this deque ornull
if there are no elements in deque.io.reactivex.Flowable<V>
pollFirst()
Retrieves and removes element at the head of this deque.io.reactivex.Flowable<V>
pollLast()
Retrieves and removes element at the tail of this deque.io.reactivex.Flowable<V>
pop()
Retrieves and removes element at the head of this deque.io.reactivex.Flowable<Void>
push(V e)
Adds element at the head of this deque.io.reactivex.Flowable<V>
removeFirst()
Retrieves and removes the first element of deque.io.reactivex.Flowable<Boolean>
removeFirstOccurrence(Object o)
Removes first occurrence of elemento
io.reactivex.Flowable<V>
removeLast()
Retrieves and removes the last element of deque.io.reactivex.Flowable<Boolean>
removeLastOccurrence(Object o)
Removes last occurrence of elemento
-
Methods inherited from interface org.redisson.api.RCollectionRx
add, addAll, addAll, contains, containsAll, iterator, remove, removeAll, retainAll, size
-
Methods inherited from interface org.redisson.api.RExpirableRx
clearExpire, expire, expireAt, expireAt, remainTimeToLive
-
Methods inherited from interface org.redisson.api.RObjectRx
copy, delete, dump, getCodec, getName, isExists, migrate, move, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, touch, unlink
-
Methods inherited from interface org.redisson.api.RQueueRx
offer, peek, poll, pollLastAndOfferFirstTo
-
-
-
-
Method Detail
-
descendingIterator
io.reactivex.Flowable<V> descendingIterator()
-
removeLastOccurrence
io.reactivex.Flowable<Boolean> removeLastOccurrence(Object o)
Removes last occurrence of elemento
- Parameters:
o
- - element- Returns:
true
if object has been removed otherwisefalse
-
removeLast
io.reactivex.Flowable<V> removeLast()
Retrieves and removes the last element of deque. Returnsnull
if there are no elements in deque.- Returns:
- element
-
removeFirst
io.reactivex.Flowable<V> removeFirst()
Retrieves and removes the first element of deque. Returnsnull
if there are no elements in deque.- Returns:
- element
-
removeFirstOccurrence
io.reactivex.Flowable<Boolean> removeFirstOccurrence(Object o)
Removes first occurrence of elemento
- Parameters:
o
- - element to remove- Returns:
true
if object has been removed otherwisefalse
-
push
io.reactivex.Flowable<Void> push(V e)
Adds element at the head of this deque.- Parameters:
e
- - element to add- Returns:
- void
-
pop
io.reactivex.Flowable<V> pop()
Retrieves and removes element at the head of this deque. Returnsnull
if there are no elements in deque.- Returns:
- element
-
pollLast
io.reactivex.Flowable<V> pollLast()
Retrieves and removes element at the tail of this deque. Returnsnull
if there are no elements in deque.- Returns:
- element
-
pollFirst
io.reactivex.Flowable<V> pollFirst()
Retrieves and removes element at the head of this deque. Returnsnull
if there are no elements in deque.- Returns:
- element
-
peekLast
io.reactivex.Flowable<V> peekLast()
Returns element at the tail of this deque ornull
if there are no elements in deque.- Returns:
- element
-
peekFirst
io.reactivex.Flowable<V> peekFirst()
Returns element at the head of this deque ornull
if there are no elements in deque.- Returns:
- element
-
offerLast
io.reactivex.Flowable<Boolean> offerLast(V e)
Adds element at the tail of this deque.- Parameters:
e
- - element to add- Returns:
true
if element was added to this deque otherwisefalse
-
getLast
io.reactivex.Flowable<V> getLast()
Returns element at the tail of this deque ornull
if there are no elements in deque.- Returns:
- element
-
addLast
io.reactivex.Flowable<Void> addLast(V e)
Adds element at the tail of this deque.- Parameters:
e
- - element to add- Returns:
- void
-
addFirst
io.reactivex.Flowable<Void> addFirst(V e)
Adds element at the head of this deque.- Parameters:
e
- - element to add- Returns:
- void
-
-