@Test public void testEquals() { new EqualsTester() .addEqualityGroup(new Object()) .addEqualityGroup( OBJ, OBJ, new RouteTargetExtendedCommunityExpr(new LiteralLong(1L), new LiteralInt(1))) .addEqualityGroup( new RouteTargetExtendedCommunityExpr(new LiteralLong(1L), new LiteralInt(2))) .addEqualityGroup( new RouteTargetExtendedCommunityExpr(new LiteralLong(2L), new LiteralInt(2))) .testEquals(); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof RouteTargetExtendedCommunityExpr)) { return false; } RouteTargetExtendedCommunityExpr rhs = (RouteTargetExtendedCommunityExpr) obj; return _gaExpr.equals(rhs._gaExpr) && _laExpr.equals(rhs._laExpr); }
RouteTargetExtendedCommunityExpr extends CommunityExpr { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof RouteTargetExtendedCommunityExpr)) { return false; } RouteTargetExtendedCommunityExpr rhs = (RouteTargetExtendedCommunityExpr) obj; return _gaExpr.equals(rhs._gaExpr) && _laExpr.equals(rhs._laExpr); } }
RouteTargetExtendedCommunityExpr extends CommunityExpr { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof RouteTargetExtendedCommunityExpr)) { return false; } RouteTargetExtendedCommunityExpr rhs = (RouteTargetExtendedCommunityExpr) obj; return _gaExpr.equals(rhs._gaExpr) && _laExpr.equals(rhs._laExpr); } RouteTargetExtendedCommunityExpr(LongExpr gaExpr, IntExpr laExpr); }
RouteTargetExtendedCommunityExpr extends CommunityExpr { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof RouteTargetExtendedCommunityExpr)) { return false; } RouteTargetExtendedCommunityExpr rhs = (RouteTargetExtendedCommunityExpr) obj; return _gaExpr.equals(rhs._gaExpr) && _laExpr.equals(rhs._laExpr); } RouteTargetExtendedCommunityExpr(LongExpr gaExpr, IntExpr laExpr); @Override T accept(CommunityExprVisitor<T, U> visitor, U arg); @JsonProperty(PROP_GA_EXPR) @Nonnull LongExpr getGaExpr(); @JsonProperty(PROP_LA_EXPR) IntExpr getLaExpr(); @Override boolean equals(Object obj); @Override int hashCode(); }
RouteTargetExtendedCommunityExpr extends CommunityExpr { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof RouteTargetExtendedCommunityExpr)) { return false; } RouteTargetExtendedCommunityExpr rhs = (RouteTargetExtendedCommunityExpr) obj; return _gaExpr.equals(rhs._gaExpr) && _laExpr.equals(rhs._laExpr); } RouteTargetExtendedCommunityExpr(LongExpr gaExpr, IntExpr laExpr); @Override T accept(CommunityExprVisitor<T, U> visitor, U arg); @JsonProperty(PROP_GA_EXPR) @Nonnull LongExpr getGaExpr(); @JsonProperty(PROP_LA_EXPR) IntExpr getLaExpr(); @Override boolean equals(Object obj); @Override int hashCode();  }