V
- the type of elements held in this collectionpublic interface RList<V> extends List<V>, RExpirable, RListAsync<V>, RSortable<List<V>>, RandomAccess
List
Modifier and Type | Method and Description |
---|---|
int |
addAfter(V elementToFind,
V element)
Add
element after elementToFind |
int |
addBefore(V elementToFind,
V element)
Add
element before elementToFind |
void |
fastRemove(int index)
Remove object by specified index
|
void |
fastSet(int index,
V element)
Set
element at index . |
List<V> |
get(int... indexes)
Loads elements by specified
indexes |
<KOut,VOut> |
mapReduce()
Returns
RMapReduce object associated with this map |
List<V> |
readAll()
Read all elements at once
|
boolean |
remove(Object o,
int count) |
RList<V> |
subList(int fromIndex,
int toIndex) |
void |
trim(int fromIndex,
int toIndex)
Trim list and remains elements only in specified range
fromIndex , inclusive, and toIndex , inclusive. |
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, toArray, toArray
parallelStream, removeIf, stream
clearExpire, expire, expireAt, expireAt, remainTimeToLive
copy, delete, dump, getCodec, getName, isExists, migrate, move, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlink
addAfterAsync, addAllAsync, addAsync, addBeforeAsync, fastRemoveAsync, fastSetAsync, getAsync, getAsync, indexOfAsync, lastIndexOfAsync, readAllAsync, removeAsync, removeAsync, setAsync, trimAsync
addAllAsync, addAsync, containsAllAsync, containsAsync, removeAllAsync, removeAsync, retainAllAsync, sizeAsync
clearExpireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsync
copyAsync, deleteAsync, dumpAsync, isExistsAsync, migrateAsync, moveAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemoryAsync, touchAsync, unlinkAsync
readSort, readSort, readSort, readSort, readSort, readSort, readSortAlpha, readSortAlpha, readSortAlpha, readSortAlpha, readSortAlpha, readSortAlpha, sortTo, sortTo, sortTo, sortTo, sortTo, sortTo
readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAsync, readSortAsync, readSortAsync, readSortAsync, readSortAsync, readSortAsync, sortToAsync, sortToAsync, sortToAsync, sortToAsync, sortToAsync, sortToAsync
List<V> get(int... indexes)
indexes
indexes
- of elements<KOut,VOut> RCollectionMapReduce<V,KOut,VOut> mapReduce()
RMapReduce
object associated with this mapKOut
- output keyVOut
- output valueint addAfter(V elementToFind, V element)
element
after elementToFind
elementToFind
- - object to findelement
- - object to addint addBefore(V elementToFind, V element)
element
before elementToFind
elementToFind
- - object to findelement
- - object to addvoid fastSet(int index, V element)
index
- - index of objectelement
- - object to setvoid trim(int fromIndex, int toIndex)
fromIndex
, inclusive, and toIndex
, inclusive.fromIndex
- - from indextoIndex
- - to indexvoid fastRemove(int index)
index
- - index of objectboolean remove(Object o, int count)
Copyright © 2014–2018 The Redisson Project. All rights reserved.