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.Completable |
add(int index,
V element)
Inserts
element at index . |
io.reactivex.Single<Integer> |
addAfter(V elementToFind,
V element)
Add
element after elementToFind |
io.reactivex.Single<Boolean> |
addAll(int index,
Collection<? extends V> elements)
Inserts
elements at index . |
io.reactivex.Single<Integer> |
addBefore(V elementToFind,
V element)
Add
element before elementToFind |
io.reactivex.Flowable<V> |
descendingIterator() |
io.reactivex.Flowable<V> |
descendingIterator(int startIndex) |
io.reactivex.Completable |
fastRemove(int index)
Remove object by specified index
|
io.reactivex.Completable |
fastSet(int index,
V element)
Set
element at index . |
io.reactivex.Single<List<V>> |
get(int... indexes)
Loads elements by specified
indexes |
io.reactivex.Maybe<V> |
get(int index)
Get element at
index |
io.reactivex.Single<Integer> |
indexOf(Object element)
Returns last index of
element or
-1 if element isn't found |
io.reactivex.Flowable<V> |
iterator(int startIndex) |
io.reactivex.Single<Integer> |
lastIndexOf(Object element)
Returns last index of
element or
-1 if element isn't found |
io.reactivex.Single<List<V>> |
range(int toIndex)
Returns range of values from 0 index to
toIndex . |
io.reactivex.Single<List<V>> |
range(int fromIndex,
int toIndex)
Returns range of values from
fromIndex to toIndex index including. |
io.reactivex.Single<List<V>> |
readAll()
Read all elements at once
|
io.reactivex.Maybe<V> |
remove(int index)
Removes element at
index . |
io.reactivex.Maybe<V> |
set(int index,
V element)
Set
element at index and returns previous element. |
io.reactivex.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, remainTimeToLive
addListener, copy, delete, dump, getCodec, 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.Single<List<V>> get(int... indexes)
indexes
indexes
- of elementsio.reactivex.Single<Integer> addAfter(V elementToFind, V element)
element
after elementToFind
elementToFind
- - object to findelement
- - object to addio.reactivex.Single<Integer> addBefore(V elementToFind, V element)
element
before elementToFind
elementToFind
- - object to findelement
- - object to addio.reactivex.Flowable<V> descendingIterator()
io.reactivex.Flowable<V> descendingIterator(int startIndex)
io.reactivex.Flowable<V> iterator(int startIndex)
io.reactivex.Single<Integer> lastIndexOf(Object element)
element
or
-1 if element isn't foundelement
- to findio.reactivex.Single<Integer> indexOf(Object element)
element
or
-1 if element isn't foundelement
- to findio.reactivex.Completable add(int index, V element)
element
at index
.
Subsequent elements are shifted.index
- - index numberelement
- - element to inserttrue
if list was changedio.reactivex.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.Completable fastSet(int index, V element)
index
- - index of objectelement
- - objectio.reactivex.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.Maybe<V> get(int index)
index
index
- - index of objectio.reactivex.Maybe<V> remove(int index)
index
.index
- - index of objectnull
if element wasn't set.io.reactivex.Completable trim(int fromIndex, int toIndex)
fromIndex
, inclusive, and toIndex
, inclusive.fromIndex
- - from indextoIndex
- - to indexio.reactivex.Completable fastRemove(int index)
index
- - index of objectio.reactivex.Single<List<V>> range(int toIndex)
toIndex
. Indexes are zero based.
-1
means the last element, -2
means penultimate and so on.toIndex
- - end indexCopyright © 2014–2020 Redisson. All rights reserved.