
org.sfm.reflect.ConstructorDefinition Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of simpleFlatMapper Show documentation
Show all versions of simpleFlatMapper Show documentation
Java library to map flat record - ResultSet, csv - to java object with minimum configuration and low footprint.
package org.sfm.reflect;
import java.lang.reflect.Constructor;
public final class ConstructorDefinition {
private final Constructor extends T> constructor;
private final ConstructorParameter[] parameters;
public ConstructorDefinition(Constructor extends T> constructor,
ConstructorParameter... parameters) {
super();
this.constructor = constructor;
this.parameters = parameters;
}
public Constructor extends T> getConstructor() {
return constructor;
}
public ConstructorParameter[] getParameters() {
return parameters;
}
public boolean hasParam(ConstructorParameter param) {
for (ConstructorParameter p : parameters) {
if (p.equals(param)) {
return true;
}
}
return false;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy