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

org.sfm.map.impl.MapperSourceImpl Maven / Gradle / Ivy

package org.sfm.map.impl;

import org.sfm.map.FieldKey;
import org.sfm.map.GetterFactory;

public class MapperSourceImpl> implements MapperSource {

    private final Class source;
    private final GetterFactory getterFactory;

    public MapperSourceImpl(Class source, GetterFactory getterFactory) {
        this.source = source;
        this.getterFactory = getterFactory;
    }

    @Override
    public Class source() {
        return source;
    }

    @Override
    public GetterFactory getterFactory() {
        return getterFactory;
    }

    public MapperSourceImpl getterFactory(GetterFactory getterFactory) {
        return new MapperSourceImpl(source, getterFactory);
    }

}