All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.vertx.lang.js.SucceededResult Maven / Gradle / Ivy

There is a newer version: 4.0.0-milestone4
Show newest version
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