package io.vertx.rxjava.ext.unit.report;
import java.util.Map;
import rx.Observable;
import rx.Single;
@io.vertx.lang.rx.RxGen(io.vertx.ext.unit.report.TestResult.class)
public class TestResult {
@Override
public String toString() {
return delegate.toString();
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
TestResult that = (TestResult) o;
return delegate.equals(that.delegate);
}
@Override
public int hashCode() {
return delegate.hashCode();
}
public static final io.vertx.lang.rx.TypeArg<TestResult> __TYPE_ARG = new io.vertx.lang.rx.TypeArg<>( obj -> new TestResult((io.vertx.ext.unit.report.TestResult) obj),
TestResult::getDelegate
);
private final io.vertx.ext.unit.report.TestResult delegate;
public TestResult(io.vertx.ext.unit.report.TestResult delegate) {
this.delegate = delegate;
}
public io.vertx.ext.unit.report.TestResult getDelegate() {
return delegate;
}
public String name() {
if (cached_0 != null) {
return cached_0;
}
String ret = delegate.name();
cached_0 = ret;
return ret;
}
public long beginTime() {
if (cached_1 != null) {
return cached_1;
}
long ret = delegate.beginTime();
cached_1 = ret;
return ret;
}
public long durationTime() {
if (cached_2 != null) {
return cached_2;
}
long ret = delegate.durationTime();
cached_2 = ret;
return ret;
}
public boolean succeeded() {
if (cached_3 != null) {
return cached_3;
}
boolean ret = delegate.succeeded();
cached_3 = ret;
return ret;
}
public boolean failed() {
if (cached_4 != null) {
return cached_4;
}
boolean ret = delegate.failed();
cached_4 = ret;
return ret;
}
public io.vertx.rxjava.ext.unit.report.Failure failure() {
if (cached_5 != null) {
return cached_5;
}
io.vertx.rxjava.ext.unit.report.Failure ret = io.vertx.rxjava.ext.unit.report.Failure.newInstance(delegate.failure());
cached_5 = ret;
return ret;
}
private String cached_0;
private java.lang.Long cached_1;
private java.lang.Long cached_2;
private java.lang.Boolean cached_3;
private java.lang.Boolean cached_4;
private io.vertx.rxjava.ext.unit.report.Failure cached_5;
public static TestResult newInstance(io.vertx.ext.unit.report.TestResult arg) {
return arg != null ? new TestResult(arg) : null;
}
}