public boolean equals()

in sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/Metric.java [127:137]


  public boolean equals(Object rhs) {
    if (rhs == null) return false;
    if (!(rhs instanceof Metric)) return false;
    if (this == rhs) return true;
    final Metric other = (Metric)rhs;
    boolean isEquals = true;
    isEquals = isEquals && this.name.equals(other.name);
    isEquals = isEquals && this.unit.equals(other.unit);
    isEquals = isEquals && this.value.equals(other.value);
    return isEquals;
  }