@Test public void testEquals() { new EqualsTester() .addEqualityGroup(EXPR, EXPR, new CommunityMatchExprReference("a")) .addEqualityGroup(new CommunityMatchExprReference("b")) .addEqualityGroup(new Object()) .testEquals(); }
@Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof CommunityMatchExprReference)) { return false; } return _name.equals(((CommunityMatchExprReference) obj)._name); }
CommunityMatchExprReference extends CommunityMatchExpr { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof CommunityMatchExprReference)) { return false; } return _name.equals(((CommunityMatchExprReference) obj)._name); } }
CommunityMatchExprReference extends CommunityMatchExpr { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof CommunityMatchExprReference)) { return false; } return _name.equals(((CommunityMatchExprReference) obj)._name); } CommunityMatchExprReference(String name); }
CommunityMatchExprReference extends CommunityMatchExpr { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof CommunityMatchExprReference)) { return false; } return _name.equals(((CommunityMatchExprReference) obj)._name); } CommunityMatchExprReference(String name); @Override T accept(CommunityMatchExprVisitor<T, U> visitor, U arg); @JsonProperty(PROP_NAME) @Nonnull String getName(); @Override boolean equals(@Nullable Object obj); @Override int hashCode(); }
CommunityMatchExprReference extends CommunityMatchExpr { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof CommunityMatchExprReference)) { return false; } return _name.equals(((CommunityMatchExprReference) obj)._name); } CommunityMatchExprReference(String name); @Override T accept(CommunityMatchExprVisitor<T, U> visitor, U arg); @JsonProperty(PROP_NAME) @Nonnull String getName(); @Override boolean equals(@Nullable Object obj); @Override int hashCode();  }