org.simpleflatmapper.converter.EmptyContextFactoryBuilder 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;
import org.simpleflatmapper.util.Supplier;
public final class EmptyContextFactoryBuilder implements ContextFactoryBuilder {
public static final EmptyContextFactoryBuilder INSTANCE = new EmptyContextFactoryBuilder();
private EmptyContextFactoryBuilder(){
}
@Override
public int addSupplier(Supplier> supplier) {
throw new UnsupportedOperationException();
}
@Override
public ContextFactory build() {
return EmptyContextFactory.INSTANCE;
}
}