
com.spotify.styx.util.AutoValue_Shard Maven / Gradle / Ivy
package com.spotify.styx.util;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_Shard extends Shard {
private final String counterId;
private final int index;
private final int value;
AutoValue_Shard(
String counterId,
int index,
int value) {
if (counterId == null) {
throw new NullPointerException("Null counterId");
}
this.counterId = counterId;
this.index = index;
this.value = value;
}
@JsonProperty
@Override
public String counterId() {
return counterId;
}
@JsonProperty
@Override
public int index() {
return index;
}
@JsonProperty
@Override
public int value() {
return value;
}
@Override
public String toString() {
return "Shard{"
+ "counterId=" + counterId + ", "
+ "index=" + index + ", "
+ "value=" + value
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof Shard) {
Shard that = (Shard) o;
return (this.counterId.equals(that.counterId()))
&& (this.index == that.index())
&& (this.value == that.value());
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= this.counterId.hashCode();
h *= 1000003;
h ^= this.index;
h *= 1000003;
h ^= this.value;
return h;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy