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

org.graylog2.indexer.searches.AutoValue_TimestampStats Maven / Gradle / Ivy

There is a newer version: 5.2.7
Show newest version

package org.graylog2.indexer.searches;

import javax.annotation.Generated;
import org.joda.time.DateTime;

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

  private final DateTime min;
  private final DateTime max;

  AutoValue_TimestampStats(
      DateTime min,
      DateTime max) {
    if (min == null) {
      throw new NullPointerException("Null min");
    }
    this.min = min;
    if (max == null) {
      throw new NullPointerException("Null max");
    }
    this.max = max;
  }

  @Override
  public DateTime min() {
    return min;
  }

  @Override
  public DateTime max() {
    return max;
  }

  @Override
  public String toString() {
    return "TimestampStats{"
        + "min=" + min + ", "
        + "max=" + max
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof TimestampStats) {
      TimestampStats that = (TimestampStats) o;
      return (this.min.equals(that.min()))
           && (this.max.equals(that.max()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h = 1;
    h *= 1000003;
    h ^= this.min.hashCode();
    h *= 1000003;
    h ^= this.max.hashCode();
    return h;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy