org.graylog2.shared.system.stats.process.$AutoValue_ProcessStats_Memory Maven / Gradle / Ivy
package org.graylog2.shared.system.stats.process;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
abstract class $AutoValue_ProcessStats_Memory extends ProcessStats.Memory {
private final long totalVirtual;
private final long resident;
private final long share;
$AutoValue_ProcessStats_Memory(
long totalVirtual,
long resident,
long share) {
this.totalVirtual = totalVirtual;
this.resident = resident;
this.share = share;
}
@JsonProperty
@Override
public long totalVirtual() {
return totalVirtual;
}
@JsonProperty
@Override
public long resident() {
return resident;
}
@JsonProperty
@Override
public long share() {
return share;
}
@Override
public String toString() {
return "Memory{"
+ "totalVirtual=" + totalVirtual + ", "
+ "resident=" + resident + ", "
+ "share=" + share
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ProcessStats.Memory) {
ProcessStats.Memory that = (ProcessStats.Memory) o;
return this.totalVirtual == that.totalVirtual()
&& this.resident == that.resident()
&& this.share == that.share();
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= (int) ((totalVirtual >>> 32) ^ totalVirtual);
h$ *= 1000003;
h$ ^= (int) ((resident >>> 32) ^ resident);
h$ *= 1000003;
h$ ^= (int) ((share >>> 32) ^ share);
return h$;
}
}