
org.jclouds.googlecomputeengine.compute.domain.internal.AutoValue_RegionAndName Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jclouds-shaded Show documentation
Show all versions of jclouds-shaded Show documentation
Provides a shaded jclouds with relocated guava and guice
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;
}
}