All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.graylog.plugins.views.migrations.V20191125144500_MigrateDashboardsToViewsSupport.AutoValue_MigrationCompleted Maven / Gradle / Ivy

There is a newer version: 6.0.1
Show newest version
package org.graylog.plugins.views.migrations.V20191125144500_MigrateDashboardsToViewsSupport;

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")
final class AutoValue_MigrationCompleted extends MigrationCompleted {

  private final Set migratedDashboardIds;

  private final Map> widgetMigrationIds;

  AutoValue_MigrationCompleted(
      Set migratedDashboardIds,
      Map> widgetMigrationIds) {
    if (migratedDashboardIds == null) {
      throw new NullPointerException("Null migratedDashboardIds");
    }
    this.migratedDashboardIds = migratedDashboardIds;
    if (widgetMigrationIds == null) {
      throw new NullPointerException("Null widgetMigrationIds");
    }
    this.widgetMigrationIds = widgetMigrationIds;
  }

  @JsonProperty("migrated_dashboard_ids")
  @Override
  public Set migratedDashboardIds() {
    return migratedDashboardIds;
  }

  @JsonProperty("widget_migration_ids")
  @Override
  public Map> widgetMigrationIds() {
    return widgetMigrationIds;
  }

  @Override
  public String toString() {
    return "MigrationCompleted{"
         + "migratedDashboardIds=" + migratedDashboardIds + ", "
         + "widgetMigrationIds=" + widgetMigrationIds
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof MigrationCompleted) {
      MigrationCompleted that = (MigrationCompleted) o;
      return this.migratedDashboardIds.equals(that.migratedDashboardIds())
          && this.widgetMigrationIds.equals(that.widgetMigrationIds());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= migratedDashboardIds.hashCode();
    h$ *= 1000003;
    h$ ^= widgetMigrationIds.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy