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