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 |
int |
addListener(ObjectListener listener)
Adds object event listener
|
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> |
range(int toIndex)
Returns range of values from 0 index to
toIndex. |
List<V> |
range(int fromIndex,
int toIndex)
Returns range of values from
fromIndex to toIndex index including. |
List<V> |
readAll()
Read all elements at once
|
boolean |
remove(Object element,
int count)
Removes up to
count occurrences of element |
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, toArrayparallelStream, removeIf, streamclearExpire, expire, expire, expireAt, expireAt, remainTimeToLivecopy, delete, dump, getCodec, getIdleTime, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlinkaddAfterAsync, addAllAsync, addAsync, addBeforeAsync, addListenerAsync, fastRemoveAsync, fastSetAsync, getAsync, getAsync, indexOfAsync, lastIndexOfAsync, rangeAsync, rangeAsync, readAllAsync, removeAsync, removeAsync, setAsync, trimAsyncaddAllAsync, addAsync, containsAllAsync, containsAsync, removeAllAsync, removeAsync, retainAllAsync, sizeAsyncclearExpireAsync, expireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsynccopyAsync, deleteAsync, dumpAsync, getIdleTimeAsync, isExistsAsync, migrateAsync, moveAsync, removeListenerAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemoryAsync, touchAsync, unlinkAsyncreadSort, readSort, readSort, readSort, readSort, readSort, readSortAlpha, readSortAlpha, readSortAlpha, readSortAlpha, readSortAlpha, readSortAlpha, sortTo, sortTo, sortTo, sortTo, sortTo, sortToreadSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAsync, readSortAsync, readSortAsync, readSortAsync, readSortAsync, readSortAsync, sortToAsync, sortToAsync, sortToAsync, sortToAsync, sortToAsync, sortToAsyncList<V> get(int... indexes)
indexesindexes - 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 elementToFindelementToFind - - object to findelement - - object to addint addBefore(V elementToFind, V element)
element before elementToFindelementToFind - - 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 indexList<V> range(int toIndex)
toIndex. Indexes are zero based.
-1 means the last element, -2 means penultimate and so on.toIndex - - end indexList<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 indexvoid fastRemove(int index)
index - - index of objectboolean remove(Object element, int count)
count occurrences of elementelement - - element to findcount - - amount occurrencestrue if at least one element removed;
or false if element isn't foundint addListener(ObjectListener listener)
addListener in interface RObjectlistener - - object event listenerExpiredObjectListener,
DeletedObjectListener,
ListAddListener,
ListInsertListener,
ListSetListener,
ListRemoveListener,
ListTrimListenerCopyright © 2014–2021 Redisson. All rights reserved.