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