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

org.graylog2.rest.models.roles.responses.$AutoValue_RolesResponse Maven / Gradle / Ivy

There is a newer version: 5.2.7
Show newest version

package org.graylog2.rest.models.roles.responses;

import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Set;
import javax.annotation.Generated;
import javax.validation.constraints.NotNull;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
 abstract class $AutoValue_RolesResponse extends RolesResponse {

  private final @NotNull Set roles;

  $AutoValue_RolesResponse(
      @NotNull Set roles) {
    if (roles == null) {
      throw new NullPointerException("Null roles");
    }
    this.roles = roles;
  }

  @JsonProperty
  @Override
  public @NotNull Set roles() {
    return roles;
  }

  @Override
  public String toString() {
    return "RolesResponse{"
        + "roles=" + roles
        + "}";
  }

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy