T - The list data type.public class DefaultAsyncList<T> extends Object implements AsyncList<T>
| Constructor and Description |
|---|
DefaultAsyncList(String address,
String name,
org.vertx.java.core.Vertx vertx) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(T value)
Adds a value to the collection.
|
void |
add(T value,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Boolean>> doneHandler)
Adds a value to the collection.
|
void |
clear()
Clears all values from the collection.
|
void |
clear(org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Void>> doneHandler)
Clears all values from the collection.
|
void |
contains(Object value,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Boolean>> resultHandler)
Checks whether the collection contains a value.
|
void |
get(int index,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<T>> resultHandler)
Gets a value at a specific index in the list.
|
void |
isEmpty(org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Boolean>> resultHandler)
Checks whether the collection is empty.
|
String |
name()
Returns the collection name.
|
void |
remove(int index)
Removes an index in the list.
|
void |
remove(int index,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<T>> doneHandler)
Removes an index in the list.
|
void |
remove(T value)
Removes a value from the collection.
|
void |
remove(T value,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Boolean>> doneHandler)
Removes a value from the collection.
|
void |
set(int index,
T value)
Sets an index in the list.
|
void |
set(int index,
T value,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Void>> doneHandler)
Sets an index in the list.
|
void |
size(org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Integer>> resultHandler)
Gets the current collection size.
|
public String name()
AsyncCollectionname in interface AsyncCollection<T>public void add(T value)
AsyncCollectionadd in interface AsyncCollection<T>value - The value to add.public void add(T value, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Boolean>> doneHandler)
AsyncCollectionadd in interface AsyncCollection<T>value - The value to add.doneHandler - An asynchronous handler to be called once complete.public void remove(T value)
AsyncCollectionremove in interface AsyncCollection<T>value - The value to remove.public void remove(T value, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Boolean>> doneHandler)
AsyncCollectionremove in interface AsyncCollection<T>value - The value to remove.doneHandler - An asynchronous handler to be called once complete.public void remove(int index)
AsyncListpublic void remove(int index,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<T>> doneHandler)
AsyncListpublic void contains(Object value, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Boolean>> resultHandler)
AsyncCollectioncontains in interface AsyncCollection<T>value - The value to check.resultHandler - An asynchronous handler to be called with the result indicating
whether the collection contains the given value.public void size(org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Integer>> resultHandler)
AsyncCollectionsize in interface AsyncCollection<T>resultHandler - An asynchronous handler to be called with the collection size.public void isEmpty(org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Boolean>> resultHandler)
AsyncCollectionisEmpty in interface AsyncCollection<T>resultHandler - An asynchronous handler to be called with the result indicating
whether the collection is empty.public void clear()
AsyncCollectionclear in interface AsyncCollection<T>public void clear(org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Void>> doneHandler)
AsyncCollectionclear in interface AsyncCollection<T>doneHandler - An asynchronous handler to be called once the collection has been cleared.public void get(int index,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<T>> resultHandler)
AsyncListpublic void set(int index,
T value)
AsyncListCopyright © 2013-2014. All Rights Reserved.