io.vertx.lang.js.SucceededResult Maven / Gradle / Ivy
package io.vertx.lang.js;
import io.vertx.core.AsyncResult;
/**
* @author Julien Viet
*/
public class SucceededResult implements AsyncResult {
final T result;
public SucceededResult(T result) {
this.result = result;
}
@Override
public T result() {
return result;
}
@Override
public Throwable cause() {
return null;
}
@Override
public boolean succeeded() {
return true;
}
@Override
public boolean failed() {
return false;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy