org.graylog.plugins.views.migrations.V20191203120602_MigrateSavedSearchesToViewsSupport.view.$AutoValue_ViewState Maven / Gradle / Ivy
package org.graylog.plugins.views.migrations.V20191203120602_MigrateSavedSearchesToViewsSupport.view;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
import java.util.Set;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
abstract class $AutoValue_ViewState extends ViewState {
private final Titles titles;
private final Set widgets;
private final Map> widgetMapping;
private final Map widgetPositions;
$AutoValue_ViewState(
Titles titles,
Set widgets,
Map> widgetMapping,
Map widgetPositions) {
if (titles == null) {
throw new NullPointerException("Null titles");
}
this.titles = titles;
if (widgets == null) {
throw new NullPointerException("Null widgets");
}
this.widgets = widgets;
if (widgetMapping == null) {
throw new NullPointerException("Null widgetMapping");
}
this.widgetMapping = widgetMapping;
if (widgetPositions == null) {
throw new NullPointerException("Null widgetPositions");
}
this.widgetPositions = widgetPositions;
}
@JsonProperty("titles")
@Override
Titles titles() {
return titles;
}
@JsonProperty("widgets")
@Override
Set widgets() {
return widgets;
}
@JsonProperty("widget_mapping")
@Override
Map> widgetMapping() {
return widgetMapping;
}
@JsonProperty("positions")
@Override
Map widgetPositions() {
return widgetPositions;
}
@Override
public String toString() {
return "ViewState{"
+ "titles=" + titles + ", "
+ "widgets=" + widgets + ", "
+ "widgetMapping=" + widgetMapping + ", "
+ "widgetPositions=" + widgetPositions
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ViewState) {
ViewState that = (ViewState) o;
return this.titles.equals(that.titles())
&& this.widgets.equals(that.widgets())
&& this.widgetMapping.equals(that.widgetMapping())
&& this.widgetPositions.equals(that.widgetPositions());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= titles.hashCode();
h$ *= 1000003;
h$ ^= widgets.hashCode();
h$ *= 1000003;
h$ ^= widgetMapping.hashCode();
h$ *= 1000003;
h$ ^= widgetPositions.hashCode();
return h$;
}
}