public class DefaultAsyncList<T> extends AbstractAsyncCollection<AsyncList<T>,ListState<T>,AsyncListProxy<T>,T> implements AsyncList<T>
proxycontext, executor, serializer| Constructor and Description |
|---|
DefaultAsyncList(ResourceContext context) |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Void> |
add(int index,
T value)
Adds a value at an index in the list.
|
CompletableFuture<Boolean> |
addAll(int index,
Collection<? extends T> values)
Adds a collection of values at an index in the list.
|
CompletableFuture<T> |
get(int index)
Gets a entry at a specific index in the list.
|
CompletableFuture<T> |
remove(int index)
Removes an index in the list.
|
CompletableFuture<T> |
set(int index,
T value)
Sets an index in the list.
|
add, addAll, checkOpen, clear, close, contains, containsAll, isEmpty, open, remove, removeAll, retainAll, sizeaddShutdownTask, addStartupTask, cluster, isClosed, isOpen, name, runShutdownTasks, runStartupTasksclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddShutdownTask, addStartupTask, cluster, namepublic DefaultAsyncList(ResourceContext context)
public CompletableFuture<T> get(int index)
AsyncListProxyget in interface AsyncListProxy<T>index - The index of the entry to get.public CompletableFuture<T> set(int index, T value)
AsyncListProxyset in interface AsyncListProxy<T>index - The index to set.value - The entry to set.public CompletableFuture<Void> add(int index, T value)
AsyncListProxyadd in interface AsyncListProxy<T>index - The index at which to add the value.value - The value to add.public CompletableFuture<Boolean> addAll(int index, Collection<? extends T> values)
AsyncListProxyaddAll in interface AsyncListProxy<T>index - The index at which to add the values.values - The values to add.public CompletableFuture<T> remove(int index)
AsyncListProxyremove in interface AsyncListProxy<T>index - The index to remove.Copyright © 2013-2015. All Rights Reserved.