T - The collection data type.public interface AsyncCollection<T>
| 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 |
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(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 |
size(org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Integer>> resultHandler)
Gets the current collection size.
|
String name()
void add(T value)
value - The value to add.void add(T value, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Boolean>> doneHandler)
value - The value to add.doneHandler - An asynchronous handler to be called once complete.void remove(T value)
value - The value to remove.void remove(T value, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Boolean>> doneHandler)
value - The value to remove.doneHandler - An asynchronous handler to be called once complete.void contains(Object value, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Boolean>> resultHandler)
value - The value to check.resultHandler - An asynchronous handler to be called with the result indicating
whether the collection contains the given value.void size(org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Integer>> resultHandler)
resultHandler - An asynchronous handler to be called with the collection size.void isEmpty(org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Boolean>> resultHandler)
resultHandler - An asynchronous handler to be called with the result indicating
whether the collection is empty.void clear()
void clear(org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Void>> doneHandler)
doneHandler - An asynchronous handler to be called once the collection has been cleared.Copyright © 2013-2014. All Rights Reserved.