org.simpleflatmapper.converter.ContextualConverterAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sfm-converter Show documentation
Show all versions of sfm-converter Show documentation
Java library to map flat record - ResultSet, csv - to java object with minimum configuration and low footprint.
package org.simpleflatmapper.converter;
public class ContextualConverterAdapter implements ContextualConverter {
private final Converter super I, ? extends O> delegate;
public ContextualConverterAdapter(Converter super I, ? extends O> converter) {
this.delegate = converter;
}
@Override
public O convert(I in, Context context) throws Exception {
return delegate.convert(in);
}
}