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

org.graylog2.rest.resources.streams.responses.$AutoValue_StreamListResponse Maven / Gradle / Ivy

There is a newer version: 6.0.1
Show newest version
package org.graylog2.rest.resources.streams.responses;

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

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

  private final long total;

  private final Collection streams;

  $AutoValue_StreamListResponse(
      long total,
      Collection streams) {
    this.total = total;
    if (streams == null) {
      throw new NullPointerException("Null streams");
    }
    this.streams = streams;
  }

  @JsonProperty
  @Override
  public long total() {
    return total;
  }

  @JsonProperty
  @Override
  public Collection streams() {
    return streams;
  }

  @Override
  public String toString() {
    return "StreamListResponse{"
        + "total=" + total + ", "
        + "streams=" + streams
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof StreamListResponse) {
      StreamListResponse that = (StreamListResponse) o;
      return this.total == that.total()
          && this.streams.equals(that.streams());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= (int) ((total >>> 32) ^ total);
    h$ *= 1000003;
    h$ ^= streams.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy