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

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

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

import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_Values extends Values {

  private final String field;

  private final int limit;

  AutoValue_Values(
      String field,
      int limit) {
    if (field == null) {
      throw new NullPointerException("Null field");
    }
    this.field = field;
    this.limit = limit;
  }

  @JsonProperty
  @Override
  public String field() {
    return field;
  }

  @JsonProperty
  @Override
  public int limit() {
    return limit;
  }

  @Override
  public String toString() {
    return "Values{"
        + "field=" + field + ", "
        + "limit=" + limit
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof Values) {
      Values that = (Values) o;
      return this.field.equals(that.field())
          && this.limit == that.limit();
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy