@Test public void inequality() { assertFalse(stmt_single.equals(null)); assertFalse(stmt_single.equals(new Object())); assertFalse(stmt_single.equals(copy_of_stmt_single_with_other_group)); assertFalse(stmt_single.equals(copy_of_stmt_multi)); assertFalse(stmt_multi.equals(copy_of_stmt_single)); }
@Override public boolean equals(Object obj) { if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final ResolvedConstantStatement other = (ResolvedConstantStatement) obj; if (!Objects.equals(this.group_, other.group_)) { return false; } if (!Objects.equals(this.metrics_, other.metrics_)) { return false; } return true; }
ResolvedConstantStatement implements RuleStatement { @Override public boolean equals(Object obj) { if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final ResolvedConstantStatement other = (ResolvedConstantStatement) obj; if (!Objects.equals(this.group_, other.group_)) { return false; } if (!Objects.equals(this.metrics_, other.metrics_)) { return false; } return true; } }
ResolvedConstantStatement implements RuleStatement { @Override public boolean equals(Object obj) { if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final ResolvedConstantStatement other = (ResolvedConstantStatement) obj; if (!Objects.equals(this.group_, other.group_)) { return false; } if (!Objects.equals(this.metrics_, other.metrics_)) { return false; } return true; } ResolvedConstantStatement(GroupExpression group, NameResolver metric, MetricValue value);  ResolvedConstantStatement(GroupExpression group, Map<NameResolver, MetricValue> metrics); }
ResolvedConstantStatement implements RuleStatement { @Override public boolean equals(Object obj) { if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final ResolvedConstantStatement other = (ResolvedConstantStatement) obj; if (!Objects.equals(this.group_, other.group_)) { return false; } if (!Objects.equals(this.metrics_, other.metrics_)) { return false; } return true; } ResolvedConstantStatement(GroupExpression group, NameResolver metric, MetricValue value);  ResolvedConstantStatement(GroupExpression group, Map<NameResolver, MetricValue> metrics); Map<NameResolver, MetricValue> getMetrics(); @Override TimeSeriesTransformer get(); @Override StringBuilder configString(); @Override int hashCode(); @Override boolean equals(Object obj); }
ResolvedConstantStatement implements RuleStatement { @Override public boolean equals(Object obj) { if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final ResolvedConstantStatement other = (ResolvedConstantStatement) obj; if (!Objects.equals(this.group_, other.group_)) { return false; } if (!Objects.equals(this.metrics_, other.metrics_)) { return false; } return true; } ResolvedConstantStatement(GroupExpression group, NameResolver metric, MetricValue value);  ResolvedConstantStatement(GroupExpression group, Map<NameResolver, MetricValue> metrics); Map<NameResolver, MetricValue> getMetrics(); @Override TimeSeriesTransformer get(); @Override StringBuilder configString(); @Override int hashCode(); @Override boolean equals(Object obj);  }