T - The set data type.public class DefaultAsyncSet<T> extends Object implements AsyncSet<T>
| Constructor and Description |
|---|
DefaultAsyncSet(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 |
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.
|
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 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.Copyright © 2013-2014. All Rights Reserved.