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

com.spotify.docker.client.messages.swarm.AutoValue_Placement Maven / Gradle / Ivy

There is a newer version: 8.16.0
Show newest version

package com.spotify.docker.client.messages.swarm;

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_Placement extends Placement {

  private final ImmutableList constraints;

  AutoValue_Placement(
      ImmutableList constraints) {
    if (constraints == null) {
      throw new NullPointerException("Null constraints");
    }
    this.constraints = constraints;
  }

  @JsonProperty(value = "Constraints")
  @Override
  public ImmutableList constraints() {
    return constraints;
  }

  @Override
  public String toString() {
    return "Placement{"
        + "constraints=" + constraints
        + "}";
  }

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

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy