org.graylog.security.shares.AutoValue_EntityShareResponse_AvailableCapability Maven / Gradle / Ivy
package org.graylog.security.shares;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_EntityShareResponse_AvailableCapability extends EntityShareResponse.AvailableCapability {
private final String id;
private final String title;
AutoValue_EntityShareResponse_AvailableCapability(
String id,
String title) {
if (id == null) {
throw new NullPointerException("Null id");
}
this.id = id;
if (title == null) {
throw new NullPointerException("Null title");
}
this.title = title;
}
@JsonProperty("id")
@Override
public String id() {
return id;
}
@JsonProperty("title")
@Override
public String title() {
return title;
}
@Override
public String toString() {
return "AvailableCapability{"
+ "id=" + id + ", "
+ "title=" + title
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof EntityShareResponse.AvailableCapability) {
EntityShareResponse.AvailableCapability that = (EntityShareResponse.AvailableCapability) o;
return this.id.equals(that.id())
&& this.title.equals(that.title());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= id.hashCode();
h$ *= 1000003;
h$ ^= title.hashCode();
return h$;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy