com.google.gerrit.server.AutoValue_PerformanceMetrics_MetricKey Maven / Gradle / Ivy
The newest version!
package com.google.gerrit.server;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_PerformanceMetrics_MetricKey extends PerformanceMetrics.MetricKey {
private final String operation;
private final String requestTag;
private final String pluginTag;
AutoValue_PerformanceMetrics_MetricKey(
String operation,
String requestTag,
String pluginTag) {
if (operation == null) {
throw new NullPointerException("Null operation");
}
this.operation = operation;
if (requestTag == null) {
throw new NullPointerException("Null requestTag");
}
this.requestTag = requestTag;
if (pluginTag == null) {
throw new NullPointerException("Null pluginTag");
}
this.pluginTag = pluginTag;
}
@Override
String operation() {
return operation;
}
@Override
String requestTag() {
return requestTag;
}
@Override
String pluginTag() {
return pluginTag;
}
@Override
public String toString() {
return "MetricKey{"
+ "operation=" + operation + ", "
+ "requestTag=" + requestTag + ", "
+ "pluginTag=" + pluginTag
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof PerformanceMetrics.MetricKey) {
PerformanceMetrics.MetricKey that = (PerformanceMetrics.MetricKey) o;
return this.operation.equals(that.operation())
&& this.requestTag.equals(that.requestTag())
&& this.pluginTag.equals(that.pluginTag());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= operation.hashCode();
h$ *= 1000003;
h$ ^= requestTag.hashCode();
h$ *= 1000003;
h$ ^= pluginTag.hashCode();
return h$;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy