org.graylog2.rest.models.system.urlwhitelist.$AutoValue_WhitelistRegexGenerationResponse Maven / Gradle / Ivy
package org.graylog2.rest.models.system.urlwhitelist;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
abstract class $AutoValue_WhitelistRegexGenerationResponse extends WhitelistRegexGenerationResponse {
private final String regex;
$AutoValue_WhitelistRegexGenerationResponse(
String regex) {
if (regex == null) {
throw new NullPointerException("Null regex");
}
this.regex = regex;
}
@JsonProperty("regex")
@Override
public String regex() {
return regex;
}
@Override
public String toString() {
return "WhitelistRegexGenerationResponse{"
+ "regex=" + regex
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof WhitelistRegexGenerationResponse) {
WhitelistRegexGenerationResponse that = (WhitelistRegexGenerationResponse) o;
return this.regex.equals(that.regex());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= regex.hashCode();
return h$;
}
}