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

org.jclouds.digitalocean2.domain.AutoValue_OperatingSystem Maven / Gradle / Ivy

The newest version!

package org.jclouds.digitalocean2.domain;

import javax.annotation.Generated;

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

  private final Distribution distribution;
  private final String version;
  private final String arch;

  AutoValue_OperatingSystem(
      Distribution distribution,
      String version,
      String arch) {
    if (distribution == null) {
      throw new NullPointerException("Null distribution");
    }
    this.distribution = distribution;
    if (version == null) {
      throw new NullPointerException("Null version");
    }
    this.version = version;
    if (arch == null) {
      throw new NullPointerException("Null arch");
    }
    this.arch = arch;
  }

  @Override
  public Distribution distribution() {
    return distribution;
  }

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

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

  @Override
  public String toString() {
    return "OperatingSystem{"
        + "distribution=" + distribution + ", "
        + "version=" + version + ", "
        + "arch=" + arch
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof OperatingSystem) {
      OperatingSystem that = (OperatingSystem) o;
      return (this.distribution.equals(that.distribution()))
           && (this.version.equals(that.version()))
           && (this.arch.equals(that.arch()));
    }
    return false;
  }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy