@Test public void testEquals() { new EqualsTester() .addEqualityGroup(EXPR, EXPR, new CommunityIs(StandardCommunity.of(1L))) .addEqualityGroup(new CommunityIs(StandardCommunity.of(2L))) .addEqualityGroup(new Object()) .testEquals(); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof CommunityIs)) { return false; } return _community.equals(((CommunityIs) obj)._community); }
CommunityIs extends CommunityMatchExpr { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof CommunityIs)) { return false; } return _community.equals(((CommunityIs) obj)._community); } }
CommunityIs extends CommunityMatchExpr { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof CommunityIs)) { return false; } return _community.equals(((CommunityIs) obj)._community); } CommunityIs(Community community); }
CommunityIs extends CommunityMatchExpr { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof CommunityIs)) { return false; } return _community.equals(((CommunityIs) obj)._community); } CommunityIs(Community community); @JsonProperty(PROP_COMMUNITY) @Nonnull Community getCommunity(); @Override boolean equals(Object obj); @Override int hashCode(); @Override T accept(CommunityMatchExprVisitor<T, U> visitor, U arg); }
CommunityIs extends CommunityMatchExpr { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof CommunityIs)) { return false; } return _community.equals(((CommunityIs) obj)._community); } CommunityIs(Community community); @JsonProperty(PROP_COMMUNITY) @Nonnull Community getCommunity(); @Override boolean equals(Object obj); @Override int hashCode(); @Override T accept(CommunityMatchExprVisitor<T, U> visitor, U arg);  }