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