org.graylog2.contentpacks.model.entities.$AutoValue_GrokPatternEntity Maven / Gradle / Ivy
package org.graylog2.contentpacks.model.entities;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
abstract class $AutoValue_GrokPatternEntity extends GrokPatternEntity {
private final String name;
private final String pattern;
$AutoValue_GrokPatternEntity(
String name,
String pattern) {
if (name == null) {
throw new NullPointerException("Null name");
}
this.name = name;
if (pattern == null) {
throw new NullPointerException("Null pattern");
}
this.pattern = pattern;
}
@JsonProperty(value = "name")
@Override
public String name() {
return name;
}
@JsonProperty(value = "pattern")
@Override
public String pattern() {
return pattern;
}
@Override
public String toString() {
return "GrokPatternEntity{"
+ "name=" + name + ", "
+ "pattern=" + pattern
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof GrokPatternEntity) {
GrokPatternEntity that = (GrokPatternEntity) o;
return (this.name.equals(that.name()))
&& (this.pattern.equals(that.pattern()));
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= name.hashCode();
h$ *= 1000003;
h$ ^= pattern.hashCode();
return h$;
}
}