package io.vertx.reactivex.kafka.client.consumer;
import java.util.Map;
import io.reactivex.Observable;
import io.reactivex.Flowable;
import io.reactivex.Single;
import io.reactivex.Completable;
import io.reactivex.Maybe;
@io.vertx.lang.rx.RxGen(io.vertx.kafka.client.consumer.KafkaConsumerRecords.class)
public class KafkaConsumerRecords<K,V> {
@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;
KafkaConsumerRecords that = (KafkaConsumerRecords) o;
return delegate.equals(that.delegate);
}
@Override
public int hashCode() {
return delegate.hashCode();
}
public static final io.vertx.lang.rx.TypeArg<KafkaConsumerRecords> __TYPE_ARG = new io.vertx.lang.rx.TypeArg<>( obj -> new KafkaConsumerRecords((io.vertx.kafka.client.consumer.KafkaConsumerRecords) obj),
KafkaConsumerRecords::getDelegate
);
private final io.vertx.kafka.client.consumer.KafkaConsumerRecords<K,V> delegate;
public final io.vertx.lang.rx.TypeArg<K> __typeArg_0;
public final io.vertx.lang.rx.TypeArg<V> __typeArg_1;
public KafkaConsumerRecords(io.vertx.kafka.client.consumer.KafkaConsumerRecords delegate) {
this.delegate = delegate;
this.__typeArg_0 = io.vertx.lang.rx.TypeArg.unknown(); this.__typeArg_1 = io.vertx.lang.rx.TypeArg.unknown(); }
public KafkaConsumerRecords(io.vertx.kafka.client.consumer.KafkaConsumerRecords delegate, io.vertx.lang.rx.TypeArg<K> typeArg_0, io.vertx.lang.rx.TypeArg<V> typeArg_1) {
this.delegate = delegate;
this.__typeArg_0 = typeArg_0;
this.__typeArg_1 = typeArg_1;
}
public io.vertx.kafka.client.consumer.KafkaConsumerRecords getDelegate() {
return delegate;
}
public int size() {
int ret = delegate.size();
return ret;
}
public boolean isEmpty() {
boolean ret = delegate.isEmpty();
return ret;
}
public io.vertx.reactivex.kafka.client.consumer.KafkaConsumerRecord<K, V> recordAt(int index) {
io.vertx.reactivex.kafka.client.consumer.KafkaConsumerRecord<K, V> ret = io.vertx.reactivex.kafka.client.consumer.KafkaConsumerRecord.newInstance(delegate.recordAt(index), __typeArg_0, __typeArg_1);
return ret;
}
public static <K,V>KafkaConsumerRecords<K,V> newInstance(io.vertx.kafka.client.consumer.KafkaConsumerRecords arg) {
return arg != null ? new KafkaConsumerRecords<K,V>(arg) : null;
}
public static <K,V>KafkaConsumerRecords<K,V> newInstance(io.vertx.kafka.client.consumer.KafkaConsumerRecords arg, io.vertx.lang.rx.TypeArg<K> __typeArg_K, io.vertx.lang.rx.TypeArg<V> __typeArg_V) {
return arg != null ? new KafkaConsumerRecords<K,V>(arg, __typeArg_K, __typeArg_V) : null;
}
}