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

com.spotify.docker.client.messages.AutoValue_TopResults Maven / Gradle / Ivy

There is a newer version: 8.16.0
Show newest version

package com.spotify.docker.client.messages;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.collect.ImmutableList;
import javax.annotation.Generated;

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

  private final ImmutableList titles;
  private final ImmutableList> processes;

  AutoValue_TopResults(
      ImmutableList titles,
      ImmutableList> processes) {
    if (titles == null) {
      throw new NullPointerException("Null titles");
    }
    this.titles = titles;
    if (processes == null) {
      throw new NullPointerException("Null processes");
    }
    this.processes = processes;
  }

  @JsonProperty(value = "Titles")
  @Override
  public ImmutableList titles() {
    return titles;
  }

  @JsonProperty(value = "Processes")
  @Override
  public ImmutableList> processes() {
    return processes;
  }

  @Override
  public String toString() {
    return "TopResults{"
        + "titles=" + titles + ", "
        + "processes=" + processes
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof TopResults) {
      TopResults that = (TopResults) o;
      return (this.titles.equals(that.titles()))
           && (this.processes.equals(that.processes()));
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy