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