All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.simpleflatmapper.converter.AbstractConverterFactory Maven / Gradle / Ivy

Go to download

Java library to map flat record - ResultSet, csv - to java object with minimum configuration and low footprint.

There is a newer version: 9.0.2
Show newest version
package org.simpleflatmapper.converter;


import java.lang.reflect.Type;

public abstract class AbstractConverterFactory implements ConverterFactory {
    protected final ConvertingTypes convertingTypes;

    protected AbstractConverterFactory(Class from, Class 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 - 2024 Weber Informatics LLC | Privacy Policy