org.graylog.plugins.views.migrations.V20191203120602_MigrateSavedSearchesToViewsSupport.view.$AutoValue_ViewWidgetPosition Maven / Gradle / Ivy
package org.graylog.plugins.views.migrations.V20191203120602_MigrateSavedSearchesToViewsSupport.view;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
abstract class $AutoValue_ViewWidgetPosition extends ViewWidgetPosition {
private final Position col;
private final Position row;
private final Position height;
private final Position width;
$AutoValue_ViewWidgetPosition(
Position col,
Position row,
Position height,
Position width) {
if (col == null) {
throw new NullPointerException("Null col");
}
this.col = col;
if (row == null) {
throw new NullPointerException("Null row");
}
this.row = row;
if (height == null) {
throw new NullPointerException("Null height");
}
this.height = height;
if (width == null) {
throw new NullPointerException("Null width");
}
this.width = width;
}
@JsonProperty(value = "col")
@Override
Position col() {
return col;
}
@JsonProperty(value = "row")
@Override
Position row() {
return row;
}
@JsonProperty(value = "height")
@Override
Position height() {
return height;
}
@JsonProperty(value = "width")
@Override
Position width() {
return width;
}
@Override
public String toString() {
return "ViewWidgetPosition{"
+ "col=" + col + ", "
+ "row=" + row + ", "
+ "height=" + height + ", "
+ "width=" + width
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ViewWidgetPosition) {
ViewWidgetPosition that = (ViewWidgetPosition) o;
return (this.col.equals(that.col()))
&& (this.row.equals(that.row()))
&& (this.height.equals(that.height()))
&& (this.width.equals(that.width()));
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= col.hashCode();
h$ *= 1000003;
h$ ^= row.hashCode();
h$ *= 1000003;
h$ ^= height.hashCode();
h$ *= 1000003;
h$ ^= width.hashCode();
return h$;
}
static final class Builder extends ViewWidgetPosition.Builder {
private Position col;
private Position row;
private Position height;
private Position width;
Builder() {
}
@Override
public ViewWidgetPosition.Builder col(Position col) {
if (col == null) {
throw new NullPointerException("Null col");
}
this.col = col;
return this;
}
@Override
public ViewWidgetPosition.Builder row(Position row) {
if (row == null) {
throw new NullPointerException("Null row");
}
this.row = row;
return this;
}
@Override
public ViewWidgetPosition.Builder height(Position height) {
if (height == null) {
throw new NullPointerException("Null height");
}
this.height = height;
return this;
}
@Override
public ViewWidgetPosition.Builder width(Position width) {
if (width == null) {
throw new NullPointerException("Null width");
}
this.width = width;
return this;
}
@Override
public ViewWidgetPosition build() {
String missing = "";
if (this.col == null) {
missing += " col";
}
if (this.row == null) {
missing += " row";
}
if (this.height == null) {
missing += " height";
}
if (this.width == null) {
missing += " width";
}
if (!missing.isEmpty()) {
throw new IllegalStateException("Missing required properties:" + missing);
}
return new AutoValue_ViewWidgetPosition(
this.col,
this.row,
this.height,
this.width);
}
}
}