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

io.vertx.codetrans.Result Maven / Gradle / Ivy

package io.vertx.codetrans;

/**
 * @author Julien Viet
 */
public abstract class Result {

  public static class Source extends Result {
    private final String value;
    public Source(String value) {
      this.value = value;
    }
    public String getValue() {
      return value;
    }
    @Override
    public String toString() {
      return "Source[" + value + "]";
    }
  }

  public static class Failure extends Result {
    private final Throwable cause;
    public Failure(Throwable cause) {
      this.cause = cause;
    }
    public Throwable getCause() {
      return cause;
    }
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy