org.graylog.plugins.views.migrations.V20191125144500_MigrateDashboardsToViewsSupport.AutoValue_OffsetRange Maven / Gradle / Ivy
package org.graylog.plugins.views.migrations.V20191125144500_MigrateDashboardsToViewsSupport;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Optional;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_OffsetRange extends OffsetRange {
private final String type;
private final String source;
private final Optional id;
private final String offset;
AutoValue_OffsetRange(
String type,
String source,
Optional id,
String offset) {
if (type == null) {
throw new NullPointerException("Null type");
}
this.type = type;
if (source == null) {
throw new NullPointerException("Null source");
}
this.source = source;
if (id == null) {
throw new NullPointerException("Null id");
}
this.id = id;
if (offset == null) {
throw new NullPointerException("Null offset");
}
this.offset = offset;
}
@JsonProperty
@Override
public String type() {
return type;
}
@JsonProperty
@Override
public String source() {
return source;
}
@JsonProperty
@Override
public Optional id() {
return id;
}
@JsonProperty
@Override
public String offset() {
return offset;
}
@Override
public String toString() {
return "OffsetRange{"
+ "type=" + type + ", "
+ "source=" + source + ", "
+ "id=" + id + ", "
+ "offset=" + offset
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof OffsetRange) {
OffsetRange that = (OffsetRange) o;
return this.type.equals(that.type())
&& this.source.equals(that.source())
&& this.id.equals(that.id())
&& this.offset.equals(that.offset());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= type.hashCode();
h$ *= 1000003;
h$ ^= source.hashCode();
h$ *= 1000003;
h$ ^= id.hashCode();
h$ *= 1000003;
h$ ^= offset.hashCode();
return h$;
}
}