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

org.graylog2.rest.resources.entities.AutoValue_EntityDefaults Maven / Gradle / Ivy

There is a newer version: 6.1.4
Show newest version
package org.graylog2.rest.resources.entities;

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

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

  private final Sorting sort;

  private AutoValue_EntityDefaults(
      Sorting sort) {
    this.sort = sort;
  }

  @JsonProperty("sort")
  @Override
  public Sorting sort() {
    return sort;
  }

  @Override
  public String toString() {
    return "EntityDefaults{"
        + "sort=" + sort
        + "}";
  }

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

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

  static final class Builder extends EntityDefaults.Builder {
    private Sorting sort;
    Builder() {
    }
    @Override
    public EntityDefaults.Builder sort(Sorting sort) {
      if (sort == null) {
        throw new NullPointerException("Null sort");
      }
      this.sort = sort;
      return this;
    }
    @Override
    public EntityDefaults build() {
      if (this.sort == null) {
        String missing = " sort";
        throw new IllegalStateException("Missing required properties:" + missing);
      }
      return new AutoValue_EntityDefaults(
          this.sort);
    }
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy