V - the type of elements held in this collectionpublic interface RListAsync<V> extends RCollectionAsync<V>, RSortableAsync<List<V>>, RandomAccess
| Modifier and Type | Method and Description |
|---|---|
RFuture<Integer> |
addAfterAsync(V elementToFind,
V element)
Add
element after elementToFind |
RFuture<Boolean> |
addAllAsync(int index,
Collection<? extends V> coll) |
RFuture<Integer> |
addBeforeAsync(V elementToFind,
V element)
Add
element before elementToFind |
RFuture<Void> |
fastRemoveAsync(long index) |
RFuture<Void> |
fastSetAsync(int index,
V element)
Set
element at index. |
RFuture<List<V>> |
getAsync(int... indexes)
Loads elements by specified
indexes |
RFuture<V> |
getAsync(int index) |
RFuture<Integer> |
indexOfAsync(Object o) |
RFuture<Integer> |
lastIndexOfAsync(Object o) |
RFuture<List<V>> |
readAllAsync()
Read all elements at once
|
RFuture<V> |
removeAsync(long index) |
RFuture<V> |
setAsync(int index,
V element) |
RFuture<Void> |
trimAsync(int fromIndex,
int toIndex)
Trim list and remains elements only in specified range
fromIndex, inclusive, and toIndex, inclusive.
|
addAllAsync, addAsync, containsAllAsync, containsAsync, removeAllAsync, removeAsync, retainAllAsync, sizeAsyncclearExpireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsynccopyAsync, deleteAsync, isExistsAsync, migrateAsync, moveAsync, renameAsync, renamenxAsync, touchAsync, unlinkAsyncreadSortAsync, readSortAsync, readSortAsync, readSortAsync, readSortAsync, readSortAsync, sortToAsync, sortToAsync, sortToAsync, sortToAsync, sortToAsync, sortToAsyncRFuture<List<V>> getAsync(int... indexes)
indexesindexes - of elementsRFuture<Integer> addAfterAsync(V elementToFind, V element)
element after elementToFindelementToFind - - object to findelement - - object to addRFuture<Integer> addBeforeAsync(V elementToFind, V element)
element before elementToFindelementToFind - - object to findelement - - object to addRFuture<Boolean> addAllAsync(int index, Collection<? extends V> coll)
RFuture<Void> fastSetAsync(int index, V element)
index - - index of objectelement - - objectRFuture<Void> trimAsync(int fromIndex, int toIndex)
fromIndex - - from indextoIndex - - to indexCopyright © 2014–2018 The Redisson Project. All rights reserved.