V
- the type of elements held in this collectionpublic interface RListRx<V> extends RCollectionRx<V>, RSortableRx<List<V>>
Modifier and Type | Method and Description |
---|---|
io.reactivex.rxjava3.core.Completable |
add(int index,
V element)
Inserts
element at index . |
io.reactivex.rxjava3.core.Single<Integer> |
addAfter(V elementToFind,
V element)
Add
element after elementToFind |
io.reactivex.rxjava3.core.Single<Boolean> |
addAll(int index,
Collection<? extends V> elements)
Inserts
elements at index . |
io.reactivex.rxjava3.core.Single<Integer> |
addBefore(V elementToFind,
V element)
Add
element before elementToFind |
io.reactivex.rxjava3.core.Flowable<V> |
descendingIterator() |
io.reactivex.rxjava3.core.Flowable<V> |
descendingIterator(int startIndex) |
io.reactivex.rxjava3.core.Completable |
fastRemove(int index)
Remove object by specified index
|
io.reactivex.rxjava3.core.Completable |
fastSet(int index,
V element)
Set
element at index . |
io.reactivex.rxjava3.core.Single<List<V>> |
get(int... indexes)
Loads elements by specified
indexes |
io.reactivex.rxjava3.core.Maybe<V> |
get(int index)
Get element at
index |
io.reactivex.rxjava3.core.Single<Integer> |
indexOf(Object element)
Returns last index of
element or
-1 if element isn't found |
io.reactivex.rxjava3.core.Flowable<V> |
iterator(int startIndex) |
io.reactivex.rxjava3.core.Single<Integer> |
lastIndexOf(Object element)
Returns last index of
element or
-1 if element isn't found |
io.reactivex.rxjava3.core.Single<List<V>> |
range(int toIndex)
Returns range of values from 0 index to
toIndex . |
io.reactivex.rxjava3.core.Single<List<V>> |
range(int fromIndex,
int toIndex)
Returns range of values from
fromIndex to toIndex index including. |
io.reactivex.rxjava3.core.Single<List<V>> |
readAll()
Read all elements at once
|
io.reactivex.rxjava3.core.Maybe<V> |
remove(int index)
Removes element at
index . |
io.reactivex.rxjava3.core.Maybe<V> |
set(int index,
V element)
Set
element at index and returns previous element. |
io.reactivex.rxjava3.core.Completable |
trim(int fromIndex,
int toIndex)
Trim list and remains elements only in specified range
fromIndex , inclusive, and toIndex , inclusive. |
add, addAll, addAll, contains, containsAll, iterator, remove, removeAll, retainAll, size
clearExpire, expire, expireAt, expireAt, expireAt, remainTimeToLive
addListener, copy, delete, dump, getCodec, getIdleTime, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlink
readSorted, readSorted, readSorted, readSorted, readSorted, readSorted, sortTo, sortTo, sortTo, sortTo, sortTo, sortTo
io.reactivex.rxjava3.core.Single<List<V>> get(int... indexes)
indexes
indexes
- of elementsio.reactivex.rxjava3.core.Single<Integer> addAfter(V elementToFind, V element)
element
after elementToFind
elementToFind
- - object to findelement
- - object to addio.reactivex.rxjava3.core.Single<Integer> addBefore(V elementToFind, V element)
element
before elementToFind
elementToFind
- - object to findelement
- - object to addio.reactivex.rxjava3.core.Flowable<V> descendingIterator()
io.reactivex.rxjava3.core.Flowable<V> descendingIterator(int startIndex)
io.reactivex.rxjava3.core.Flowable<V> iterator(int startIndex)
io.reactivex.rxjava3.core.Single<Integer> lastIndexOf(Object element)
element
or
-1 if element isn't foundelement
- to findio.reactivex.rxjava3.core.Single<Integer> indexOf(Object element)
element
or
-1 if element isn't foundelement
- to findio.reactivex.rxjava3.core.Completable add(int index, V element)
element
at index
.
Subsequent elements are shifted.index
- - index numberelement
- - element to inserttrue
if list was changedio.reactivex.rxjava3.core.Single<Boolean> addAll(int index, Collection<? extends V> elements)
elements
at index
.
Subsequent elements are shifted.index
- - index numberelements
- - elements to inserttrue
if list changed
or false
if element isn't foundio.reactivex.rxjava3.core.Completable fastSet(int index, V element)
index
- - index of objectelement
- - objectio.reactivex.rxjava3.core.Maybe<V> set(int index, V element)
element
at index
and returns previous element.index
- - index of objectelement
- - objectnull
if element wasn't set.io.reactivex.rxjava3.core.Maybe<V> get(int index)
index
index
- - index of objectio.reactivex.rxjava3.core.Maybe<V> remove(int index)
index
.index
- - index of objectnull
if element wasn't set.io.reactivex.rxjava3.core.Single<List<V>> readAll()
io.reactivex.rxjava3.core.Completable trim(int fromIndex, int toIndex)
fromIndex
, inclusive, and toIndex
, inclusive.fromIndex
- - from indextoIndex
- - to indexio.reactivex.rxjava3.core.Completable fastRemove(int index)
index
- - index of objectio.reactivex.rxjava3.core.Single<List<V>> range(int toIndex)
toIndex
. Indexes are zero based.
-1
means the last element, -2
means penultimate and so on.toIndex
- - end indexio.reactivex.rxjava3.core.Single<List<V>> range(int fromIndex, int toIndex)
fromIndex
to toIndex
index including.
Indexes are zero based. -1
means the last element, -2
means penultimate and so on.fromIndex
- - start indextoIndex
- - end indexCopyright © 2014–2021 Redisson. All rights reserved.