org.simpleflatmapper.map.context.impl.ValuedMappingContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sfm-map Show documentation
Show all versions of sfm-map Show documentation
Java library to map flat record - ResultSet, csv - to java object with minimum configuration and low footprint.
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];
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy