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

org.simpleflatmapper.map.context.impl.ValuedMappingContext 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.map.context.impl;


import org.simpleflatmapper.map.MappingContext;

public class ValuedMappingContext extends MappingContext {

    private final Object[] values;

    public ValuedMappingContext(Object[] values) {
        this.values = values;
    }

    @SuppressWarnings("unchecked")
    @Override
    public  T context(int i) {
        return (T)values[i];
    }
}