Package org.redisson.api
Interface RListRx<V>
- Type Parameters:
V
- the type of elements held in this collection
- All Superinterfaces:
RCollectionRx<V>
,RExpirableRx
,RObjectRx
,RSortableRx<List<V>>
list functions
- Author:
- Nikita Koksharov
-
Method Summary
Modifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Completable
Insertselement
atindex
.io.reactivex.rxjava3.core.Single
<Integer> Addelement
afterelementToFind
io.reactivex.rxjava3.core.Single
<Boolean> addAll
(int index, Collection<? extends V> elements) Insertselements
atindex
.io.reactivex.rxjava3.core.Single
<Integer> Addelement
beforeelementToFind
io.reactivex.rxjava3.core.Single
<Integer> addListener
(ObjectListener listener) Adds object event listenerio.reactivex.rxjava3.core.Flowable
<V> io.reactivex.rxjava3.core.Flowable
<V> descendingIterator
(int startIndex) io.reactivex.rxjava3.core.Completable
fastRemove
(int index) Remove object by specified indexio.reactivex.rxjava3.core.Completable
Setelement
atindex
.io.reactivex.rxjava3.core.Maybe
<V> get
(int index) Get element atindex
get
(int... indexes) Loads elements by specifiedindexes
io.reactivex.rxjava3.core.Single
<Integer> Returns last index ofelement
or -1 if element isn't foundio.reactivex.rxjava3.core.Flowable
<V> iterator
(int startIndex) io.reactivex.rxjava3.core.Single
<Integer> lastIndexOf
(Object element) Returns last index ofelement
or -1 if element isn't foundrange
(int toIndex) Returns range of values from 0 index totoIndex
.range
(int fromIndex, int toIndex) Returns range of values fromfromIndex
totoIndex
index including.readAll()
Read all elements at onceio.reactivex.rxjava3.core.Maybe
<V> remove
(int index) Removes element atindex
.io.reactivex.rxjava3.core.Maybe
<V> Setelement
atindex
and returns previous element.io.reactivex.rxjava3.core.Completable
trim
(int fromIndex, int toIndex) Trim list and remains elements only in specified rangefromIndex
, inclusive, andtoIndex
, inclusive.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, expire, expire, expireAt, expireAt, expireIfGreater, expireIfGreater, expireIfLess, expireIfLess, expireIfNotSet, expireIfNotSet, expireIfSet, expireIfSet, getExpireTime, remainTimeToLive
Methods inherited from interface org.redisson.api.RObjectRx
copy, delete, dump, getCodec, getIdleTime, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlink
Methods inherited from interface org.redisson.api.RSortableRx
readSorted, readSorted, readSorted, readSorted, readSorted, readSorted, sortTo, sortTo, sortTo, sortTo, sortTo, sortTo
-
Method Details
-
get
Loads elements by specifiedindexes
- Parameters:
indexes
- of elements- Returns:
- elements
-
addAfter
Addelement
afterelementToFind
- Parameters:
elementToFind
- - object to findelement
- - object to add- Returns:
- new list size
-
addBefore
Addelement
beforeelementToFind
- Parameters:
elementToFind
- - object to findelement
- - object to add- Returns:
- new list size
-
descendingIterator
io.reactivex.rxjava3.core.Flowable<V> descendingIterator() -
descendingIterator
-
iterator
-
lastIndexOf
Returns last index ofelement
or -1 if element isn't found- Parameters:
element
- to find- Returns:
- index of -1 if element isn't found
-
indexOf
Returns last index ofelement
or -1 if element isn't found- Parameters:
element
- to find- Returns:
- index of -1 if element isn't found
-
add
Insertselement
atindex
. Subsequent elements are shifted.- Parameters:
index
- - index numberelement
- - element to insert- Returns:
true
if list was changed
-
addAll
Insertselements
atindex
. Subsequent elements are shifted.- Parameters:
index
- - index numberelements
- - elements to insert- Returns:
true
if list changed orfalse
if element isn't found
-
fastSet
- Parameters:
index
- - index of objectelement
- - object- Returns:
- void
-
set
Setelement
atindex
and returns previous element.- Parameters:
index
- - index of objectelement
- - object- Returns:
- previous element or
null
if element wasn't set.
-
get
Get element atindex
- Parameters:
index
- - index of object- Returns:
- element
-
remove
Removes element atindex
.- Parameters:
index
- - index of object- Returns:
- element or
null
if element wasn't set.
-
readAll
Read all elements at once- Returns:
- list of values
-
trim
io.reactivex.rxjava3.core.Completable trim(int fromIndex, int toIndex) Trim list and remains elements only in specified rangefromIndex
, inclusive, andtoIndex
, inclusive.- Parameters:
fromIndex
- - from indextoIndex
- - to index- Returns:
- void
-
fastRemove
io.reactivex.rxjava3.core.Completable fastRemove(int index) Remove object by specified index- Parameters:
index
- - index of object- Returns:
- void
-
range
Returns range of values from 0 index totoIndex
. Indexes are zero based.-1
means the last element,-2
means penultimate and so on.- Parameters:
toIndex
- - end index- Returns:
- elements
-
range
Returns range of values fromfromIndex
totoIndex
index including. Indexes are zero based.-1
means the last element,-2
means penultimate and so on.- Parameters:
fromIndex
- - start indextoIndex
- - end index- Returns:
- elements
-
addListener
Adds object event listener- Specified by:
addListener
in interfaceRObjectRx
- Parameters:
listener
- - object event listener- Returns:
- listener id
- See Also:
-