
com.newrelic.agent.instrumentation.classmatchers.HashSafeClassAndMethodMatcher Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of newrelic-agent Show documentation
Show all versions of newrelic-agent Show documentation
Jar required to run with a java application to monitor performance.
The newest version!
/*
*
* * Copyright 2020 New Relic Corporation. All rights reserved.
* * SPDX-License-Identifier: Apache-2.0
*
*/
package com.newrelic.agent.instrumentation.classmatchers;
import com.newrelic.agent.instrumentation.methodmatchers.MethodMatcher;
public class HashSafeClassAndMethodMatcher extends DefaultClassAndMethodMatcher {
public HashSafeClassAndMethodMatcher(ClassMatcher classMatcher, MethodMatcher methodMatcher) {
super(classMatcher, methodMatcher);
}
// Generated:
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((classMatcher == null) ? 0 : classMatcher.hashCode());
result = prime * result + ((methodMatcher == null) ? 0 : methodMatcher.hashCode());
return result;
}
// Generated:
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (getClass() != obj.getClass()) {
return false;
}
DefaultClassAndMethodMatcher other = (DefaultClassAndMethodMatcher) obj;
if (classMatcher == null) {
if (other.getClassMatcher() != null) {
return false;
}
} else if (!classMatcher.equals(other.getClassMatcher())) {
return false;
}
if (methodMatcher == null) {
if (other.getMethodMatcher() != null) {
return false;
}
} else if (!methodMatcher.equals(other.getMethodMatcher())) {
return false;
}
return true;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy