
org.jclouds.digitalocean2.compute.internal.AutoValue_ImageInRegion 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.digitalocean2.compute.internal;
import javax.annotation.Generated;
import org.jclouds.digitalocean2.domain.Image;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ImageInRegion extends ImageInRegion {
private final Image image;
private final String region;
AutoValue_ImageInRegion(
Image image,
String region) {
if (image == null) {
throw new NullPointerException("Null image");
}
this.image = image;
if (region == null) {
throw new NullPointerException("Null region");
}
this.region = region;
}
@Override
public Image image() {
return image;
}
@Override
public String region() {
return region;
}
@Override
public String toString() {
return "ImageInRegion{"
+ "image=" + image + ", "
+ "region=" + region
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ImageInRegion) {
ImageInRegion that = (ImageInRegion) o;
return (this.image.equals(that.image()))
&& (this.region.equals(that.region()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= this.image.hashCode();
h *= 1000003;
h ^= this.region.hashCode();
return h;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy