org.graylog2.system.stats.elasticsearch.AutoValue_ClusterStats Maven / Gradle / Ivy
package org.graylog2.system.stats.elasticsearch;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ClusterStats extends ClusterStats {
private final String clusterName;
private final String clusterVersion;
private final NodesStats nodesStats;
private final IndicesStats indicesStats;
AutoValue_ClusterStats(
String clusterName,
String clusterVersion,
NodesStats nodesStats,
IndicesStats indicesStats) {
if (clusterName == null) {
throw new NullPointerException("Null clusterName");
}
this.clusterName = clusterName;
if (clusterVersion == null) {
throw new NullPointerException("Null clusterVersion");
}
this.clusterVersion = clusterVersion;
if (nodesStats == null) {
throw new NullPointerException("Null nodesStats");
}
this.nodesStats = nodesStats;
if (indicesStats == null) {
throw new NullPointerException("Null indicesStats");
}
this.indicesStats = indicesStats;
}
@Override
public String clusterName() {
return clusterName;
}
@Override
public String clusterVersion() {
return clusterVersion;
}
@Override
public NodesStats nodesStats() {
return nodesStats;
}
@Override
public IndicesStats indicesStats() {
return indicesStats;
}
@Override
public String toString() {
return "ClusterStats{"
+ "clusterName=" + clusterName + ", "
+ "clusterVersion=" + clusterVersion + ", "
+ "nodesStats=" + nodesStats + ", "
+ "indicesStats=" + indicesStats
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ClusterStats) {
ClusterStats that = (ClusterStats) o;
return this.clusterName.equals(that.clusterName())
&& this.clusterVersion.equals(that.clusterVersion())
&& this.nodesStats.equals(that.nodesStats())
&& this.indicesStats.equals(that.indicesStats());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= clusterName.hashCode();
h$ *= 1000003;
h$ ^= clusterVersion.hashCode();
h$ *= 1000003;
h$ ^= nodesStats.hashCode();
h$ *= 1000003;
h$ ^= indicesStats.hashCode();
return h$;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy