org.simpleflatmapper.reflect.ClassMetaWithDiscriminatorId Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sfm-reflect Show documentation
Show all versions of sfm-reflect Show documentation
Java library to map flat record - ResultSet, csv - to java object with minimum configuration and low footprint.
package org.simpleflatmapper.reflect;
import org.simpleflatmapper.reflect.meta.ClassMeta;
public class ClassMetaWithDiscriminatorId {
public final ClassMeta classMeta;
public final Object discriminatorId;
public ClassMetaWithDiscriminatorId(ClassMeta classMeta, Object discriminatorId) {
this.classMeta = classMeta;
this.discriminatorId = discriminatorId;
}
public ClassMetaWithDiscriminatorId withReflectionService(ReflectionService reflectionService) {
return new ClassMetaWithDiscriminatorId(classMeta.withReflectionService(reflectionService), discriminatorId);
}
}