org.graylog2.indexer.messages.AutoValue_IndexingResults Maven / Gradle / Ivy
package org.graylog2.indexer.messages;
import com.google.common.collect.ImmutableList;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_IndexingResults extends IndexingResults {
private final ImmutableList successes;
private final ImmutableList errors;
private AutoValue_IndexingResults(
ImmutableList successes,
ImmutableList errors) {
this.successes = successes;
this.errors = errors;
}
@Override
public ImmutableList successes() {
return successes;
}
@Override
public ImmutableList errors() {
return errors;
}
@Override
public String toString() {
return "IndexingResults{"
+ "successes=" + successes + ", "
+ "errors=" + errors
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof IndexingResults) {
IndexingResults that = (IndexingResults) o;
return this.successes.equals(that.successes())
&& this.errors.equals(that.errors());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= successes.hashCode();
h$ *= 1000003;
h$ ^= errors.hashCode();
return h$;
}
static final class Builder extends IndexingResults.Builder {
private ImmutableList.Builder successesBuilder$;
private ImmutableList successes;
private ImmutableList.Builder errorsBuilder$;
private ImmutableList errors;
Builder() {
}
@Override
ImmutableList.Builder successesBuilder() {
if (successesBuilder$ == null) {
successesBuilder$ = ImmutableList.builder();
}
return successesBuilder$;
}
@Override
ImmutableList.Builder errorsBuilder() {
if (errorsBuilder$ == null) {
errorsBuilder$ = ImmutableList.builder();
}
return errorsBuilder$;
}
@Override
public IndexingResults build() {
if (successesBuilder$ != null) {
this.successes = successesBuilder$.build();
} else if (this.successes == null) {
this.successes = ImmutableList.of();
}
if (errorsBuilder$ != null) {
this.errors = errorsBuilder$.build();
} else if (this.errors == null) {
this.errors = ImmutableList.of();
}
return new AutoValue_IndexingResults(
this.successes,
this.errors);
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy