Package org.redisson.api
Interface RCollectionRx<V>
-
- Type Parameters:
V
- value
- All Superinterfaces:
RExpirableRx
,RObjectRx
- All Known Subinterfaces:
RBlockingDequeRx<V>
,RBlockingQueueRx<V>
,RDequeRx<V>
,RLexSortedSetRx
,RListRx<V>
,RQueueRx<V>
,RRingBufferRx<V>
,RSetCacheRx<V>
,RSetRx<V>
,RTransferQueueRx<V>
public interface RCollectionRx<V> extends RExpirableRx
Common RxJava2 interface for collection object- Author:
- Nikita Koksharov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description io.reactivex.rxjava3.core.Single<Boolean>
add(V e)
Adds element into this collection.io.reactivex.rxjava3.core.Single<Boolean>
addAll(Collection<? extends V> c)
Adds all elements contained in the specified collectionio.reactivex.rxjava3.core.Single<Boolean>
addAll(org.reactivestreams.Publisher<? extends V> c)
Adds all elements contained in the specified collectionio.reactivex.rxjava3.core.Single<Boolean>
contains(V o)
Returnstrue
if this collection contains encoded state of the specified element.io.reactivex.rxjava3.core.Single<Boolean>
containsAll(Collection<?> c)
Returnstrue
if this collection contains all of the elements in the specified collection.io.reactivex.rxjava3.core.Flowable<V>
iterator()
Returns iterator over collection elementsio.reactivex.rxjava3.core.Single<Boolean>
remove(V o)
Removes a single instance of the specified element from this collection, if it is present (optional operation).io.reactivex.rxjava3.core.Single<Boolean>
removeAll(Collection<?> c)
Removes all of this collection's elements that are also contained in the specified collection (optional operation).io.reactivex.rxjava3.core.Single<Boolean>
retainAll(Collection<?> c)
Retains only the elements in this collection that are contained in the specified collection (optional operation).io.reactivex.rxjava3.core.Single<Integer>
size()
Returns number of elements in this collection.-
Methods inherited from interface org.redisson.api.RExpirableRx
clearExpire, expire, expireAt, expireAt, expireAt, remainTimeToLive
-
Methods inherited from interface org.redisson.api.RObjectRx
addListener, copy, delete, dump, getCodec, getIdleTime, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlink
-
-
-
-
Method Detail
-
iterator
io.reactivex.rxjava3.core.Flowable<V> iterator()
Returns iterator over collection elements- Returns:
- iterator
-
retainAll
io.reactivex.rxjava3.core.Single<Boolean> retainAll(Collection<?> c)
Retains only the elements in this collection that are contained in the specified collection (optional operation).- Parameters:
c
- collection containing elements to be retained in this collection- Returns:
true
if this collection changed as a result of the call
-
removeAll
io.reactivex.rxjava3.core.Single<Boolean> removeAll(Collection<?> c)
Removes all of this collection's elements that are also contained in the specified collection (optional operation).- Parameters:
c
- collection containing elements to be removed from this collection- Returns:
true
if this collection changed as a result of the call
-
contains
io.reactivex.rxjava3.core.Single<Boolean> contains(V o)
Returnstrue
if this collection contains encoded state of the specified element.- Parameters:
o
- element whose presence in this collection is to be tested- Returns:
true
if this collection contains the specified element andfalse
otherwise
-
containsAll
io.reactivex.rxjava3.core.Single<Boolean> containsAll(Collection<?> c)
Returnstrue
if this collection contains all of the elements in the specified collection.- Parameters:
c
- collection to be checked for containment in this collection- Returns:
true
if this collection contains all of the elements in the specified collection
-
remove
io.reactivex.rxjava3.core.Single<Boolean> remove(V o)
Removes a single instance of the specified element from this collection, if it is present (optional operation).- Parameters:
o
- element to be removed from this collection, if present- Returns:
true
if an element was removed as a result of this call
-
size
io.reactivex.rxjava3.core.Single<Integer> size()
Returns number of elements in this collection.- Returns:
- size of collection
-
add
io.reactivex.rxjava3.core.Single<Boolean> add(V e)
Adds element into this collection.- Parameters:
e
- - element to add- Returns:
true
if an element was added andfalse
if it is already present
-
addAll
io.reactivex.rxjava3.core.Single<Boolean> addAll(org.reactivestreams.Publisher<? extends V> c)
Adds all elements contained in the specified collection- Parameters:
c
- - collection of elements to add- Returns:
true
if at least one element was added andfalse
if all elements are already present
-
addAll
io.reactivex.rxjava3.core.Single<Boolean> addAll(Collection<? extends V> c)
Adds all elements contained in the specified collection- Parameters:
c
- - collection of elements to add- Returns:
true
if at least one element was added andfalse
if all elements are already present
-
-