public boolean equals()

in metrics/src/main/java/com/facebook/battery/metrics/cpu/CpuMetrics.java [71:85]


  public boolean equals(@Nullable Object other) {
    if (this == other) {
      return true;
    }
    if (other == null || getClass() != other.getClass()) {
      return false;
    }

    CpuMetrics that = (CpuMetrics) other;

    return Double.compare(that.systemTimeS, systemTimeS) == 0
        && Double.compare(that.userTimeS, userTimeS) == 0
        && Double.compare(that.childSystemTimeS, childSystemTimeS) == 0
        && Double.compare(that.childUserTimeS, childUserTimeS) == 0;
  }