org.graylog.grn.AutoValue_GRNType Maven / Gradle / Ivy
package org.graylog.grn;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_GRNType extends GRNType {
private final String type;
private final String permissionPrefix;
AutoValue_GRNType(
String type,
String permissionPrefix) {
if (type == null) {
throw new NullPointerException("Null type");
}
this.type = type;
if (permissionPrefix == null) {
throw new NullPointerException("Null permissionPrefix");
}
this.permissionPrefix = permissionPrefix;
}
@Override
public String type() {
return type;
}
@Override
public String permissionPrefix() {
return permissionPrefix;
}
@Override
public String toString() {
return "GRNType{"
+ "type=" + type + ", "
+ "permissionPrefix=" + permissionPrefix
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof GRNType) {
GRNType that = (GRNType) o;
return this.type.equals(that.type())
&& this.permissionPrefix.equals(that.permissionPrefix());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= type.hashCode();
h$ *= 1000003;
h$ ^= permissionPrefix.hashCode();
return h$;
}
}