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

org.sfm.reflect.ConstructorDefinition 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: 1.10.3
Show newest version
package org.sfm.reflect;

import java.lang.reflect.Constructor;

public final class ConstructorDefinition {
	private final Constructor constructor;
	private final ConstructorParameter[] parameters;
	public ConstructorDefinition(Constructor constructor,
			ConstructorParameter... parameters) {
		super();
		this.constructor = constructor;
		this.parameters = parameters;
	}
	public Constructor 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