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)
Inserts
element after elementToFind |
RFuture<Boolean> |
addAllAsync(int index,
Collection<? extends V> elements)
Inserts
elements at index. |
RFuture<Boolean> |
addAsync(int index,
V element)
Inserts
element at index. |
RFuture<Integer> |
addBeforeAsync(V elementToFind,
V element)
Inserts
element before elementToFind |
RFuture<Integer> |
addListenerAsync(ObjectListener listener)
Adds object event listener
|
RFuture<Void> |
fastRemoveAsync(int index)
Removes element at
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)
Get element at
index |
RFuture<Integer> |
indexOfAsync(Object element)
Returns last index of
element or
-1 if element isn't found |
RFuture<Integer> |
lastIndexOfAsync(Object element)
Returns last index of
element or
-1 if element isn't found |
RFuture<List<V>> |
rangeAsync(int toIndex)
Returns range of values from 0 index to
toIndex. |
RFuture<List<V>> |
rangeAsync(int fromIndex,
int toIndex)
Returns range of values from
fromIndex to toIndex index including. |
RFuture<List<V>> |
readAllAsync()
Read all elements at once
|
RFuture<V> |
removeAsync(int index)
Removes element at
index. |
RFuture<Boolean> |
removeAsync(Object element,
int count)
Removes up to
count occurrences of element |
RFuture<V> |
setAsync(int index,
V element)
Set
element at index and returns previous 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, dumpAsync, getIdleTimeAsync, isExistsAsync, migrateAsync, moveAsync, removeListenerAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemoryAsync, touchAsync, unlinkAsyncreadSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAsync, 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> addAsync(int index, V element)
element at index.
Subsequent elements are shifted.index - - index numberelement - - element to inserttrue if list was changedRFuture<Boolean> addAllAsync(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 foundRFuture<Integer> lastIndexOfAsync(Object element)
element or
-1 if element isn't foundelement - to findRFuture<Integer> indexOfAsync(Object element)
element or
-1 if element isn't foundelement - to findRFuture<Void> fastSetAsync(int index, V element)
index - - index of objectelement - - objectRFuture<V> setAsync(int index, V element)
element at index and returns previous element.index - - index of objectelement - - objectnull if element wasn't set.RFuture<V> getAsync(int index)
indexindex - - index of objectRFuture<Void> trimAsync(int fromIndex, int toIndex)
fromIndex, inclusive, and toIndex, inclusive.fromIndex - - from indextoIndex - - to indexRFuture<Void> fastRemoveAsync(int index)
index.
Works faster than removeAsync(Object, int) but
doesn't return element.index - - index of objectRFuture<V> removeAsync(int index)
index.index - - index of objectnull if element wasn't set.RFuture<Boolean> removeAsync(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 foundRFuture<List<V>> rangeAsync(int toIndex)
toIndex. Indexes are zero based.
-1 means the last element, -2 means penultimate and so on.toIndex - - end indexRFuture<List<V>> rangeAsync(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 indexRFuture<Integer> addListenerAsync(ObjectListener listener)
addListenerAsync in interface RObjectAsynclistener - - object event listenerExpiredObjectListener,
DeletedObjectListener,
ListAddListener,
ListInsertListener,
ListSetListener,
ListRemoveListener,
ListTrimListenerCopyright © 2014–2020 Redisson. All rights reserved.