org.graylog2.contentpacks.model.entities.$AutoValue_DashboardWidgetEntity_Position Maven / Gradle / Ivy
package org.graylog2.contentpacks.model.entities;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.Generated;
import javax.validation.constraints.PositiveOrZero;
import org.graylog2.contentpacks.model.entities.references.ValueReference;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
abstract class $AutoValue_DashboardWidgetEntity_Position extends DashboardWidgetEntity.Position {
private final @PositiveOrZero ValueReference width;
private final @PositiveOrZero ValueReference height;
private final @PositiveOrZero ValueReference row;
private final @PositiveOrZero ValueReference col;
$AutoValue_DashboardWidgetEntity_Position(
@PositiveOrZero ValueReference width,
@PositiveOrZero ValueReference height,
@PositiveOrZero ValueReference row,
@PositiveOrZero ValueReference col) {
if (width == null) {
throw new NullPointerException("Null width");
}
this.width = width;
if (height == null) {
throw new NullPointerException("Null height");
}
this.height = height;
if (row == null) {
throw new NullPointerException("Null row");
}
this.row = row;
if (col == null) {
throw new NullPointerException("Null col");
}
this.col = col;
}
@JsonProperty("width")
@Override
public @PositiveOrZero ValueReference width() {
return width;
}
@JsonProperty("height")
@Override
public @PositiveOrZero ValueReference height() {
return height;
}
@JsonProperty("row")
@Override
public @PositiveOrZero ValueReference row() {
return row;
}
@JsonProperty("col")
@Override
public @PositiveOrZero ValueReference col() {
return col;
}
@Override
public String toString() {
return "Position{"
+ "width=" + width + ", "
+ "height=" + height + ", "
+ "row=" + row + ", "
+ "col=" + col
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof DashboardWidgetEntity.Position) {
DashboardWidgetEntity.Position that = (DashboardWidgetEntity.Position) o;
return this.width.equals(that.width())
&& this.height.equals(that.height())
&& this.row.equals(that.row())
&& this.col.equals(that.col());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= width.hashCode();
h$ *= 1000003;
h$ ^= height.hashCode();
h$ *= 1000003;
h$ ^= row.hashCode();
h$ *= 1000003;
h$ ^= col.hashCode();
return h$;
}
}