
org.jclouds.azurecompute.arm.domain.AutoValue_MetricData 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.azurecompute.arm.domain;
import java.util.Date;
import javax.annotation.Generated;
import org.jclouds.javax.annotation.Nullable;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_MetricData extends MetricData {
private final Date timeStamp;
private final Double total;
private final Double average;
private final Double minimum;
private final Double maximum;
private final Long count;
AutoValue_MetricData(
Date timeStamp,
@Nullable Double total,
@Nullable Double average,
@Nullable Double minimum,
@Nullable Double maximum,
@Nullable Long count) {
if (timeStamp == null) {
throw new NullPointerException("Null timeStamp");
}
this.timeStamp = timeStamp;
this.total = total;
this.average = average;
this.minimum = minimum;
this.maximum = maximum;
this.count = count;
}
@Override
public Date timeStamp() {
return timeStamp;
}
@Nullable
@Override
public Double total() {
return total;
}
@Nullable
@Override
public Double average() {
return average;
}
@Nullable
@Override
public Double minimum() {
return minimum;
}
@Nullable
@Override
public Double maximum() {
return maximum;
}
@Nullable
@Override
public Long count() {
return count;
}
@Override
public String toString() {
return "MetricData{"
+ "timeStamp=" + timeStamp + ", "
+ "total=" + total + ", "
+ "average=" + average + ", "
+ "minimum=" + minimum + ", "
+ "maximum=" + maximum + ", "
+ "count=" + count
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof MetricData) {
MetricData that = (MetricData) o;
return (this.timeStamp.equals(that.timeStamp()))
&& ((this.total == null) ? (that.total() == null) : this.total.equals(that.total()))
&& ((this.average == null) ? (that.average() == null) : this.average.equals(that.average()))
&& ((this.minimum == null) ? (that.minimum() == null) : this.minimum.equals(that.minimum()))
&& ((this.maximum == null) ? (that.maximum() == null) : this.maximum.equals(that.maximum()))
&& ((this.count == null) ? (that.count() == null) : this.count.equals(that.count()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= this.timeStamp.hashCode();
h *= 1000003;
h ^= (total == null) ? 0 : this.total.hashCode();
h *= 1000003;
h ^= (average == null) ? 0 : this.average.hashCode();
h *= 1000003;
h ^= (minimum == null) ? 0 : this.minimum.hashCode();
h *= 1000003;
h ^= (maximum == null) ? 0 : this.maximum.hashCode();
h *= 1000003;
h ^= (count == null) ? 0 : this.count.hashCode();
return h;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy