org.simpleflatmapper.reflect.asm.InjectedParam 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.asm;
public class InjectedParam {
private final String name;
private final Class> type;
public InjectedParam(String name, Class> type) {
this.name = name;
this.type = type;
}
public String getName() {
return name;
}
public Class> getType() {
return type;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
InjectedParam that = (InjectedParam) o;
if (name != null ? !name.equals(that.name) : that.name != null) return false;
return type != null ? type.equals(that.type) : that.type == null;
}
@Override
public int hashCode() {
int result = name != null ? name.hashCode() : 0;
result = 31 * result + (type != null ? type.hashCode() : 0);
return result;
}
}