
org.apache.jclouds.oneandone.rest.domain.AutoValue_Hdd 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.apache.jclouds.oneandone.rest.domain;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_Hdd extends Hdd {
private final String id;
private final double size;
private final boolean isMain;
AutoValue_Hdd(
String id,
double size,
boolean isMain) {
if (id == null) {
throw new NullPointerException("Null id");
}
this.id = id;
this.size = size;
this.isMain = isMain;
}
@Override
public String id() {
return id;
}
@Override
public double size() {
return size;
}
@Override
public boolean isMain() {
return isMain;
}
@Override
public String toString() {
return "Hdd{"
+ "id=" + id + ", "
+ "size=" + size + ", "
+ "isMain=" + isMain
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof Hdd) {
Hdd that = (Hdd) o;
return (this.id.equals(that.id()))
&& (Double.doubleToLongBits(this.size) == Double.doubleToLongBits(that.size()))
&& (this.isMain == that.isMain());
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= this.id.hashCode();
h *= 1000003;
h ^= (Double.doubleToLongBits(this.size) >>> 32) ^ Double.doubleToLongBits(this.size);
h *= 1000003;
h ^= this.isMain ? 1231 : 1237;
return h;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy