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

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

The newest version!

package org.jclouds.packet.domain;

import javax.annotation.Generated;

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

  private final Integer count;
  private final String type;

  AutoValue_Specs_CPU(
      Integer count,
      String type) {
    if (count == null) {
      throw new NullPointerException("Null count");
    }
    this.count = count;
    if (type == null) {
      throw new NullPointerException("Null type");
    }
    this.type = type;
  }

  @Override
  public Integer count() {
    return count;
  }

  @Override
  public String type() {
    return type;
  }

  @Override
  public String toString() {
    return "CPU{"
        + "count=" + count + ", "
        + "type=" + type
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof Specs.CPU) {
      Specs.CPU that = (Specs.CPU) o;
      return (this.count.equals(that.count()))
           && (this.type.equals(that.type()));
    }
    return false;
  }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy