/** * Returns the wrapped member, containing the injection point. * @return the Field / Method / Constructor as Member */ public Member getMember() { return (this.field != null ? this.field : obtainMethodParameter().getMember()); }
/** * Returns the wrapped member, containing the injection point. * @return the Field / Method / Constructor as Member */ public Member getMember() { return (this.field != null ? this.field : obtainMethodParameter().getMember()); }
/** * Return the class that declares the underlying Method or Constructor. */ public Class getDeclaringClass() { return getMember().getDeclaringClass(); }
@Override public int hashCode() { int result = this.hash; if (result == 0) { result = getMember().hashCode(); result = 31 * result + this.parameterIndex; this.hash = result; } return result; }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj != null && obj instanceof MethodParameter) { MethodParameter other = (MethodParameter) obj; if (this.parameterIndex != other.parameterIndex) { return false; } else if (this.getMember().equals(other.getMember())) { return true; } else { return false; } } return false; }
/** * Returns the wrapped member, containing the injection point. * @return the Field / Method / Constructor as Member */ public Member getMember() { return (this.field != null ? this.field : this.methodParameter.getMember()); }
/** * Return the class that declares the underlying Method or Constructor. */ public Class<?> getDeclaringClass() { return getMember().getDeclaringClass(); }
@Override public int hashCode() { int result = this.hash; if (result == 0) { result = getMember().hashCode(); result = 31 * result + this.parameterIndex; this.hash = result; } return result; }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj != null && obj instanceof MethodParameter) { MethodParameter other = (MethodParameter) obj; if (this.parameterIndex != other.parameterIndex) { return false; } else if (this.getMember().equals(other.getMember())) { return true; } else { return false; } } return false; }