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;
}
}