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

org.jclouds.googlecomputeengine.compute.domain.internal.AutoValue_RegionAndName Maven / Gradle / Ivy

The newest version!

package org.jclouds.googlecomputeengine.compute.domain.internal;

import javax.annotation.Generated;

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

  private final String regionId;
  private final String name;

  AutoValue_RegionAndName(
      String regionId,
      String name) {
    if (regionId == null) {
      throw new NullPointerException("Null regionId");
    }
    this.regionId = regionId;
    if (name == null) {
      throw new NullPointerException("Null name");
    }
    this.name = name;
  }

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

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

  @Override
  public String toString() {
    return "RegionAndName{"
        + "regionId=" + regionId + ", "
        + "name=" + name
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof RegionAndName) {
      RegionAndName that = (RegionAndName) o;
      return (this.regionId.equals(that.regionId()))
           && (this.name.equals(that.name()));
    }
    return false;
  }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy