com.julienviet.reactivex.pgclient.PgIterator Maven / Gradle / Ivy
/*
* Copyright 2014 Red Hat, Inc.
*
* Red Hat licenses this file to you under the Apache License, version 2.0
* (the "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*/
package com.julienviet.reactivex.pgclient;
import java.util.Map;
import io.reactivex.Observable;
import io.reactivex.Flowable;
import io.reactivex.Single;
import io.reactivex.Completable;
import io.reactivex.Maybe;
import java.util.Iterator;
/**
* An iterator for processing postgres items synchronously.
*
*
* NOTE: This class has been automatically generated from the {@link com.julienviet.pgclient.PgIterator original} non RX-ified interface using Vert.x codegen.
*/
@io.vertx.lang.reactivex.RxGen(com.julienviet.pgclient.PgIterator.class)
public class PgIterator {
@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;
PgIterator that = (PgIterator) o;
return delegate.equals(that.delegate);
}
@Override
public int hashCode() {
return delegate.hashCode();
}
public static final io.vertx.lang.reactivex.TypeArg __TYPE_ARG = new io.vertx.lang.reactivex.TypeArg<>(
obj -> new PgIterator((com.julienviet.pgclient.PgIterator) obj),
PgIterator::getDelegate
);
private final com.julienviet.pgclient.PgIterator delegate;
public final io.vertx.lang.reactivex.TypeArg __typeArg_0;
public PgIterator(com.julienviet.pgclient.PgIterator delegate) {
this.delegate = delegate;
this.__typeArg_0 = io.vertx.lang.reactivex.TypeArg.unknown();
}
public PgIterator(com.julienviet.pgclient.PgIterator delegate, io.vertx.lang.reactivex.TypeArg typeArg_0) {
this.delegate = delegate;
this.__typeArg_0 = typeArg_0;
}
public com.julienviet.pgclient.PgIterator getDelegate() {
return delegate;
}
public boolean hasNext() {
boolean ret = delegate.hasNext();
return ret;
}
public T next() {
T ret = (T)__typeArg_0.wrap(delegate.next());
return ret;
}
public static PgIterator newInstance(com.julienviet.pgclient.PgIterator arg) {
return arg != null ? new PgIterator(arg) : null;
}
public static PgIterator newInstance(com.julienviet.pgclient.PgIterator arg, io.vertx.lang.reactivex.TypeArg __typeArg_T) {
return arg != null ? new PgIterator(arg, __typeArg_T) : null;
}
}