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

org.graylog2.rest.models.users.responses.$AutoValue_TokenList Maven / Gradle / Ivy

There is a newer version: 5.2.7
Show newest version

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

import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import javax.annotation.Generated;

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

  private final List tokens;

  $AutoValue_TokenList(
      List tokens) {
    if (tokens == null) {
      throw new NullPointerException("Null tokens");
    }
    this.tokens = tokens;
  }

  @JsonProperty
  @Override
  public List tokens() {
    return tokens;
  }

  @Override
  public String toString() {
    return "TokenList{"
        + "tokens=" + tokens
        + "}";
  }

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy