@Override public String toString() { return new StringJoiner(", ", this.getClass().getSimpleName() + "{", "}") .add("timestamp=" + timestamp()) .add("name=" + name()) .add("description=" + description()) .add("tags=" + tags()) .add("metrics=" + Iterables.toString(metrics())) .toString(); } }
@Override public int hashCode() { return Objects.hashCode(name(), description(), tags()); }
@Override public int hashCode() { return Objects.hashCode(name(), description(), tags()); }
@Override public boolean equals(Object obj) { if (obj instanceof MetricsRecord) { final MetricsRecord other = (MetricsRecord) obj; return Objects.equal(timestamp(), other.timestamp()) && Objects.equal(name(), other.name()) && Objects.equal(description(), other.description()) && Objects.equal(tags(), other.tags()) && Iterables.elementsEqual(metrics(), other.metrics()); } return false; }
@Override public int hashCode() { return Objects.hashCode(name(), description(), tags()); }
@Override public String toString() { return Objects.toStringHelper(this) .add("timestamp", timestamp()) .add("name", name()) .add("description", description()) .add("tags", tags()) .add("metrics", Iterables.toString(metrics())) .toString(); } }
@Override public int hashCode() { return Objects.hashCode(name(), description(), tags()); }
@Override public String toString() { return Objects.toStringHelper(this) .add("timestamp", timestamp()) .add("name", name()) .add("description", description()) .add("tags", tags()) .add("metrics", Iterables.toString(metrics())) .toString(); } }
@Override public int hashCode() { return Objects.hashCode(name(), description(), tags()); }
@Override public String toString() { return Objects.toStringHelper(this) .add("timestamp", timestamp()) .add("name", name()) .add("description", description()) .add("tags", tags()) .add("metrics", Iterables.toString(metrics())) .toString(); } }
@Override public boolean equals(Object obj) { if (obj instanceof MetricsRecord) { final MetricsRecord other = (MetricsRecord) obj; return Objects.equal(timestamp(), other.timestamp()) && Objects.equal(name(), other.name()) && Objects.equal(description(), other.description()) && Objects.equal(tags(), other.tags()) && Iterables.elementsEqual(metrics(), other.metrics()); } return false; }
@Override public boolean equals(Object obj) { if (obj instanceof MetricsRecord) { final MetricsRecord other = (MetricsRecord) obj; return Objects.equal(timestamp(), other.timestamp()) && Objects.equal(name(), other.name()) && Objects.equal(description(), other.description()) && Objects.equal(tags(), other.tags()) && Iterables.elementsEqual(metrics(), other.metrics()); } return false; }
@Override public boolean equals(Object obj) { if (obj instanceof MetricsRecord) { final MetricsRecord other = (MetricsRecord) obj; return Objects.equal(timestamp(), other.timestamp()) && Objects.equal(name(), other.name()) && Objects.equal(description(), other.description()) && Objects.equal(tags(), other.tags()) && Iterables.elementsEqual(metrics(), other.metrics()); } return false; }
@Override public String toString() { return Objects.toStringHelper(this) .add("timestamp", timestamp()) .add("name", name()) .add("description", description()) .add("tags", tags()) .add("metrics", Iterables.toString(metrics())) .toString(); } }
@Override public boolean equals(Object obj) { if (obj instanceof MetricsRecord) { final MetricsRecord other = (MetricsRecord) obj; return Objects.equal(timestamp(), other.timestamp()) && Objects.equal(name(), other.name()) && Objects.equal(description(), other.description()) && Objects.equal(tags(), other.tags()) && Iterables.elementsEqual(metrics(), other.metrics()); } return false; }