package io.vertx.rxjava.core.http;
import java.util.Map;
import rx.Observable;
import rx.Single;
@io.vertx.lang.rx.RxGen(io.vertx.core.http.HttpFrame.class)
public class HttpFrame {
@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;
HttpFrame that = (HttpFrame) o;
return delegate.equals(that.delegate);
}
@Override
public int hashCode() {
return delegate.hashCode();
}
public static final io.vertx.lang.rx.TypeArg<HttpFrame> __TYPE_ARG = new io.vertx.lang.rx.TypeArg<>( obj -> new HttpFrame((io.vertx.core.http.HttpFrame) obj),
HttpFrame::getDelegate
);
private final io.vertx.core.http.HttpFrame delegate;
public HttpFrame(io.vertx.core.http.HttpFrame delegate) {
this.delegate = delegate;
}
public io.vertx.core.http.HttpFrame getDelegate() {
return delegate;
}
public int type() {
if (cached_0 != null) {
return cached_0;
}
int ret = delegate.type();
cached_0 = ret;
return ret;
}
public int flags() {
if (cached_1 != null) {
return cached_1;
}
int ret = delegate.flags();
cached_1 = ret;
return ret;
}
public io.vertx.rxjava.core.buffer.Buffer payload() {
if (cached_2 != null) {
return cached_2;
}
io.vertx.rxjava.core.buffer.Buffer ret = io.vertx.rxjava.core.buffer.Buffer.newInstance(delegate.payload());
cached_2 = ret;
return ret;
}
private java.lang.Integer cached_0;
private java.lang.Integer cached_1;
private io.vertx.rxjava.core.buffer.Buffer cached_2;
public static HttpFrame newInstance(io.vertx.core.http.HttpFrame arg) {
return arg != null ? new HttpFrame(arg) : null;
}
}