
org.jclouds.googlecomputeengine.domain.AutoValue_Quota Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-compute-engine Show documentation
Show all versions of google-compute-engine Show documentation
jclouds components to access GoogleCompute
The newest version!
package org.jclouds.googlecomputeengine.domain;
import javax.annotation.processing.Generated;
import org.jclouds.javax.annotation.Nullable;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_Quota extends Quota {
private final String metric;
private final double usage;
private final double limit;
AutoValue_Quota(
@Nullable String metric,
double usage,
double limit) {
this.metric = metric;
this.usage = usage;
this.limit = limit;
}
@Nullable
@Override
public String metric() {
return metric;
}
@Override
public double usage() {
return usage;
}
@Override
public double limit() {
return limit;
}
@Override
public String toString() {
return "Quota{"
+ "metric=" + metric + ", "
+ "usage=" + usage + ", "
+ "limit=" + limit
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof Quota) {
Quota that = (Quota) o;
return ((this.metric == null) ? (that.metric() == null) : this.metric.equals(that.metric()))
&& (Double.doubleToLongBits(this.usage) == Double.doubleToLongBits(that.usage()))
&& (Double.doubleToLongBits(this.limit) == Double.doubleToLongBits(that.limit()));
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= (metric == null) ? 0 : metric.hashCode();
h$ *= 1000003;
h$ ^= (int) ((Double.doubleToLongBits(usage) >>> 32) ^ Double.doubleToLongBits(usage));
h$ *= 1000003;
h$ ^= (int) ((Double.doubleToLongBits(limit) >>> 32) ^ Double.doubleToLongBits(limit));
return h$;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy