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