org.simpleflatmapper.map.impl.IdentityFieldMapperColumnDefinitionProvider 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.impl;
import org.simpleflatmapper.map.mapper.ColumnDefinitionProvider;
import org.simpleflatmapper.map.FieldKey;
import org.simpleflatmapper.map.property.FieldMapperColumnDefinition;
import org.simpleflatmapper.util.BiConsumer;
import org.simpleflatmapper.util.Predicate;
public class IdentityFieldMapperColumnDefinitionProvider> implements ColumnDefinitionProvider {
@Override
public FieldMapperColumnDefinition getColumnDefinition(K key) {
return FieldMapperColumnDefinition.identity();
}
@Override
public , CP>> BC forEach(Class propertyType, BC consumer) {
return consumer;
}
}