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