@Test public void testEquals() { new EqualsTester() .addEqualityGroup(new Object()) .addEqualityGroup( OBJ, OBJ, new ExtendedCommunityGlobalAdministratorMatch( new LongComparison(IntComparator.EQ, new LiteralLong(1L)))) .addEqualityGroup( new ExtendedCommunityGlobalAdministratorMatch( new LongComparison(IntComparator.EQ, new LiteralLong(2L)))) .testEquals(); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof ExtendedCommunityGlobalAdministratorMatch)) { return false; } return _expr.equals(((ExtendedCommunityGlobalAdministratorMatch) obj)._expr); }
ExtendedCommunityGlobalAdministratorMatch extends CommunityMatchExpr { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof ExtendedCommunityGlobalAdministratorMatch)) { return false; } return _expr.equals(((ExtendedCommunityGlobalAdministratorMatch) obj)._expr); } }
ExtendedCommunityGlobalAdministratorMatch extends CommunityMatchExpr { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof ExtendedCommunityGlobalAdministratorMatch)) { return false; } return _expr.equals(((ExtendedCommunityGlobalAdministratorMatch) obj)._expr); } ExtendedCommunityGlobalAdministratorMatch(LongMatchExpr expr); }
ExtendedCommunityGlobalAdministratorMatch extends CommunityMatchExpr { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof ExtendedCommunityGlobalAdministratorMatch)) { return false; } return _expr.equals(((ExtendedCommunityGlobalAdministratorMatch) obj)._expr); } ExtendedCommunityGlobalAdministratorMatch(LongMatchExpr expr); @Override T accept(CommunityMatchExprVisitor<T, U> visitor, U arg); @JsonProperty(PROP_EXPR) @Nonnull LongMatchExpr getExpr(); @Override boolean equals(Object obj); @Override int hashCode(); }
ExtendedCommunityGlobalAdministratorMatch extends CommunityMatchExpr { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof ExtendedCommunityGlobalAdministratorMatch)) { return false; } return _expr.equals(((ExtendedCommunityGlobalAdministratorMatch) obj)._expr); } ExtendedCommunityGlobalAdministratorMatch(LongMatchExpr expr); @Override T accept(CommunityMatchExprVisitor<T, U> visitor, U arg); @JsonProperty(PROP_EXPR) @Nonnull LongMatchExpr getExpr(); @Override boolean equals(Object obj); @Override int hashCode();  }