@Test public void testEquals() { new EqualsTester() .addEqualityGroup(new LiteralCommunityHalf(1), new LiteralCommunityHalf(1)) .addEqualityGroup(new LiteralCommunityHalf(2)) .testEquals(); }
@Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof LiteralCommunityHalf)) { return false; } return _value == ((LiteralCommunityHalf) obj)._value; }
LiteralCommunityHalf implements CommunityHalfExpr { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof LiteralCommunityHalf)) { return false; } return _value == ((LiteralCommunityHalf) obj)._value; } }
LiteralCommunityHalf implements CommunityHalfExpr { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof LiteralCommunityHalf)) { return false; } return _value == ((LiteralCommunityHalf) obj)._value; } LiteralCommunityHalf(int value); }
LiteralCommunityHalf implements CommunityHalfExpr { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof LiteralCommunityHalf)) { return false; } return _value == ((LiteralCommunityHalf) obj)._value; } LiteralCommunityHalf(int value); @Override boolean equals(@Nullable Object obj); @Override int hashCode(); @Override boolean dynamicMatchCommunity(); @JsonProperty(PROP_VALUE) int getValue(); @Override boolean matches(int communityHalf); }
LiteralCommunityHalf implements CommunityHalfExpr { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof LiteralCommunityHalf)) { return false; } return _value == ((LiteralCommunityHalf) obj)._value; } LiteralCommunityHalf(int value); @Override boolean equals(@Nullable Object obj); @Override int hashCode(); @Override boolean dynamicMatchCommunity(); @JsonProperty(PROP_VALUE) int getValue(); @Override boolean matches(int communityHalf);  }