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

org.jclouds.packet.domain.AutoValue_Specs Maven / Gradle / Ivy

The newest version!

package org.jclouds.packet.domain;

import java.util.List;
import java.util.Map;
import javax.annotation.Generated;

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

  private final List cpus;
  private final Specs.Memory memory;
  private final List drives;
  private final List nics;
  private final Map features;

  AutoValue_Specs(
      List cpus,
      Specs.Memory memory,
      List drives,
      List nics,
      Map features) {
    if (cpus == null) {
      throw new NullPointerException("Null cpus");
    }
    this.cpus = cpus;
    if (memory == null) {
      throw new NullPointerException("Null memory");
    }
    this.memory = memory;
    if (drives == null) {
      throw new NullPointerException("Null drives");
    }
    this.drives = drives;
    if (nics == null) {
      throw new NullPointerException("Null nics");
    }
    this.nics = nics;
    if (features == null) {
      throw new NullPointerException("Null features");
    }
    this.features = features;
  }

  @Override
  public List cpus() {
    return cpus;
  }

  @Override
  public Specs.Memory memory() {
    return memory;
  }

  @Override
  public List drives() {
    return drives;
  }

  @Override
  public List nics() {
    return nics;
  }

  @Override
  public Map features() {
    return features;
  }

  @Override
  public String toString() {
    return "Specs{"
        + "cpus=" + cpus + ", "
        + "memory=" + memory + ", "
        + "drives=" + drives + ", "
        + "nics=" + nics + ", "
        + "features=" + features
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof Specs) {
      Specs that = (Specs) o;
      return (this.cpus.equals(that.cpus()))
           && (this.memory.equals(that.memory()))
           && (this.drives.equals(that.drives()))
           && (this.nics.equals(that.nics()))
           && (this.features.equals(that.features()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h = 1;
    h *= 1000003;
    h ^= this.cpus.hashCode();
    h *= 1000003;
    h ^= this.memory.hashCode();
    h *= 1000003;
    h ^= this.drives.hashCode();
    h *= 1000003;
    h ^= this.nics.hashCode();
    h *= 1000003;
    h ^= this.features.hashCode();
    return h;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy