@Test public void testEquals() { new EqualsTester() .addEqualityGroup( new LiteralCommunity(StandardCommunity.of(1L)), new LiteralCommunity(StandardCommunity.of(1L))) .addEqualityGroup(new LiteralCommunity(StandardCommunity.of(2L))) .testEquals(); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof LiteralCommunity)) { return false; } return _community.equals(((LiteralCommunity) obj)._community); }
LiteralCommunity extends CommunitySetExpr { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof LiteralCommunity)) { return false; } return _community.equals(((LiteralCommunity) obj)._community); } }
LiteralCommunity extends CommunitySetExpr { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof LiteralCommunity)) { return false; } return _community.equals(((LiteralCommunity) obj)._community); } LiteralCommunity(Community community); }
LiteralCommunity extends CommunitySetExpr { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof LiteralCommunity)) { return false; } return _community.equals(((LiteralCommunity) obj)._community); } LiteralCommunity(Community community); @Override T accept(CommunitySetExprVisitor<T> visitor); @Override void accept(VoidCommunitySetExprVisitor visitor); @Nonnull @Override Set<Community> asLiteralCommunities(Environment environment); @Override boolean dynamicMatchCommunity(); @Override boolean equals(Object obj); @JsonProperty(PROP_COMMUNITY) Community getCommunity(); @Override int hashCode(); @Override boolean matchCommunities(Environment environment, Set<Community> communitySetCandidate); @Override boolean matchCommunity(Environment environment, Community community); @Override boolean reducible(); @Override String toString(); }
LiteralCommunity extends CommunitySetExpr { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof LiteralCommunity)) { return false; } return _community.equals(((LiteralCommunity) obj)._community); } LiteralCommunity(Community community); @Override T accept(CommunitySetExprVisitor<T> visitor); @Override void accept(VoidCommunitySetExprVisitor visitor); @Nonnull @Override Set<Community> asLiteralCommunities(Environment environment); @Override boolean dynamicMatchCommunity(); @Override boolean equals(Object obj); @JsonProperty(PROP_COMMUNITY) Community getCommunity(); @Override int hashCode(); @Override boolean matchCommunities(Environment environment, Set<Community> communitySetCandidate); @Override boolean matchCommunity(Environment environment, Community community); @Override boolean reducible(); @Override String toString();  }