org.simpleflatmapper.converter.AbstractConverterFactory Maven / Gradle / Ivy
package org.simpleflatmapper.converter;
import java.lang.reflect.Type;
public abstract class AbstractConverterFactory implements ConverterFactory {
protected final ConvertingTypes convertingTypes;
protected AbstractConverterFactory(Class super I> from, Class extends O> to) {
this(new ConvertingTypes(from, to));
}
protected AbstractConverterFactory(ConvertingTypes convertingTypes) {
this.convertingTypes = convertingTypes;
}
@Override
public ConvertingScore score(ConvertingTypes targetedTypes) {
return this.convertingTypes.score(targetedTypes);
}
@Override
public Type getFromType() {
return this.convertingTypes.getFrom();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy