All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.graylog2.shared.system.stats.jvm.$AutoValue_JvmStats_Memory Maven / Gradle / Ivy

There is a newer version: 5.2.7
Show newest version


package org.graylog2.shared.system.stats.jvm;

import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
abstract class $AutoValue_JvmStats_Memory extends JvmStats.Memory {

  private final long heapInit;

  private final long heapMax;

  private final long nonHeapInit;

  private final long nonHeapMax;

  private final long directMemoryMax;

  $AutoValue_JvmStats_Memory(
      long heapInit,
      long heapMax,
      long nonHeapInit,
      long nonHeapMax,
      long directMemoryMax) {
    this.heapInit = heapInit;
    this.heapMax = heapMax;
    this.nonHeapInit = nonHeapInit;
    this.nonHeapMax = nonHeapMax;
    this.directMemoryMax = directMemoryMax;
  }

  @JsonProperty
  @Override
  public long heapInit() {
    return heapInit;
  }

  @JsonProperty
  @Override
  public long heapMax() {
    return heapMax;
  }

  @JsonProperty
  @Override
  public long nonHeapInit() {
    return nonHeapInit;
  }

  @JsonProperty
  @Override
  public long nonHeapMax() {
    return nonHeapMax;
  }

  @JsonProperty
  @Override
  public long directMemoryMax() {
    return directMemoryMax;
  }

  @Override
  public String toString() {
    return "Memory{"
         + "heapInit=" + heapInit + ", "
         + "heapMax=" + heapMax + ", "
         + "nonHeapInit=" + nonHeapInit + ", "
         + "nonHeapMax=" + nonHeapMax + ", "
         + "directMemoryMax=" + directMemoryMax
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof JvmStats.Memory) {
      JvmStats.Memory that = (JvmStats.Memory) o;
      return (this.heapInit == that.heapInit())
           && (this.heapMax == that.heapMax())
           && (this.nonHeapInit == that.nonHeapInit())
           && (this.nonHeapMax == that.nonHeapMax())
           && (this.directMemoryMax == that.directMemoryMax());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= (int) ((heapInit >>> 32) ^ heapInit);
    h$ *= 1000003;
    h$ ^= (int) ((heapMax >>> 32) ^ heapMax);
    h$ *= 1000003;
    h$ ^= (int) ((nonHeapInit >>> 32) ^ nonHeapInit);
    h$ *= 1000003;
    h$ ^= (int) ((nonHeapMax >>> 32) ^ nonHeapMax);
    h$ *= 1000003;
    h$ ^= (int) ((directMemoryMax >>> 32) ^ directMemoryMax);
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy