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