org.hibernate.tool.hbm2x.pojo.IteratorTransformer Maven / Gradle / Ivy
package org.hibernate.tool.hbm2x.pojo;
import java.util.Iterator;
public abstract class IteratorTransformer implements Iterator {
private Iterator delegate;
public IteratorTransformer(Iterator delegate) {
this.delegate = delegate;
}
public boolean hasNext() {
return delegate.hasNext();
}
public String next() {
return transform(delegate.next());
}
public abstract String transform(T object);
public void remove() {
delegate.remove();
}
}