// Generated by delombok at Sun Feb 26 12:31:38 KST 2017 package scouter.bytebuddy.matcher; import scouter.bytebuddy.description.method.MethodDescription; import scouter.bytebuddy.description.method.ParameterDescription; import scouter.bytebuddy.description.method.ParameterList; /** * An element matcher that matches a method's parameters. * * @param <T> The type of the matched entity. */ public class MethodParametersMatcher<T extends MethodDescription> extends ElementMatcher.Junction.AbstractBase<T> { /** * The matcher to apply to the parameters. */ private final ElementMatcher<? super ParameterList<?>> matcher; /** * Creates a new matcher for a method's parameters. * * @param matcher The matcher to apply to the parameters. */ public MethodParametersMatcher(ElementMatcher<? super ParameterList<? extends ParameterDescription>> matcher) { this.matcher = matcher; } @Override public boolean matches(T target) { return matcher.matches(target.getParameters()); } @Override public String toString() { return "hasParameter(" + matcher + ")"; } @java.lang.Override @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") public boolean equals(final java.lang.Object o) { if (o == this) return true; if (!(o instanceof MethodParametersMatcher)) return false; final MethodParametersMatcher<?> other = (MethodParametersMatcher<?>) o; if (!other.canEqual((java.lang.Object) this)) return false; final java.lang.Object this$matcher = this.matcher; final java.lang.Object other$matcher = other.matcher; if (this$matcher == null ? other$matcher != null : !this$matcher.equals(other$matcher)) return false; return true; } @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") protected boolean canEqual(final java.lang.Object other) { return other instanceof MethodParametersMatcher; } @java.lang.Override @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") public int hashCode() { final int PRIME = 59; int result = 1; final java.lang.Object $matcher = this.matcher; result = result * PRIME + ($matcher == null ? 43 : $matcher.hashCode()); return result; } }