@Test public void inequality() { final LiteralGroupExpression expr1 = new LiteralGroupExpression(new LiteralNameResolver("foobar")); final LiteralGroupExpression expr2 = new LiteralGroupExpression(new LiteralNameResolver("other")); assertFalse(expr1.equals(null)); assertFalse(expr1.equals(new Object())); assertFalse(expr1.equals(expr2)); }
@Override public boolean equals(Object obj) { if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final LiteralGroupExpression other = (LiteralGroupExpression) obj; if (!Objects.equals(this.name_, other.name_)) { return false; } return true; }
LiteralGroupExpression implements GroupExpression { @Override public boolean equals(Object obj) { if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final LiteralGroupExpression other = (LiteralGroupExpression) obj; if (!Objects.equals(this.name_, other.name_)) { return false; } return true; } }
LiteralGroupExpression implements GroupExpression { @Override public boolean equals(Object obj) { if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final LiteralGroupExpression other = (LiteralGroupExpression) obj; if (!Objects.equals(this.name_, other.name_)) { return false; } return true; } LiteralGroupExpression(NameResolver name); }
LiteralGroupExpression implements GroupExpression { @Override public boolean equals(Object obj) { if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final LiteralGroupExpression other = (LiteralGroupExpression) obj; if (!Objects.equals(this.name_, other.name_)) { return false; } return true; } LiteralGroupExpression(NameResolver name); NameResolver getName(); @Override PathMatcher getPathMatcher(); @Override StringBuilder configString(); @Override String toString(); @Override TimeSeriesValueSet getTSDelta(Context ctx); @Override int hashCode(); @Override boolean equals(Object obj); }
LiteralGroupExpression implements GroupExpression { @Override public boolean equals(Object obj) { if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final LiteralGroupExpression other = (LiteralGroupExpression) obj; if (!Objects.equals(this.name_, other.name_)) { return false; } return true; } LiteralGroupExpression(NameResolver name); NameResolver getName(); @Override PathMatcher getPathMatcher(); @Override StringBuilder configString(); @Override String toString(); @Override TimeSeriesValueSet getTSDelta(Context ctx); @Override int hashCode(); @Override boolean equals(Object obj);  }