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

org.graylog.plugins.views.migrations.V20191125144500_MigrateDashboardsToViewsSupport.AutoValue_TimeUnitInterval 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 javax.annotation.processing.Generated;

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

  private final String timeunit;

  AutoValue_TimeUnitInterval(
      String timeunit) {
    if (timeunit == null) {
      throw new NullPointerException("Null timeunit");
    }
    this.timeunit = timeunit;
  }

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

  @Override
  public String toString() {
    return "TimeUnitInterval{"
        + "timeunit=" + timeunit
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof TimeUnitInterval) {
      TimeUnitInterval that = (TimeUnitInterval) o;
      return this.timeunit.equals(that.timeunit());
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy