org.simpleflatmapper.converter.AbstractContextualConverterFactoryProducer Maven / Gradle / Ivy
package org.simpleflatmapper.converter;
import org.simpleflatmapper.util.Consumer;
public abstract class AbstractContextualConverterFactoryProducer implements ContextualConverterFactoryProducer {
protected void constantConverter(
Consumer super ContextualConverterFactory, ?>> consumer,
Class from,
Class to,
ContextualConverter converter) {
consumer.accept(new ConstantContextualConverterFactory(new ConvertingTypes(from, to), converter));
}
protected void factoryConverter(
Consumer super ContextualConverterFactory, ?>> consumer,
ContextualConverterFactory, ?> converterFactory) {
consumer.accept(converterFactory);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy