@Test public void testEquals() { new EqualsTester() .addEqualityGroup(ACL, ACL, new CommunityAcl(ImmutableList.of())) .addEqualityGroup( new CommunityAcl( ImmutableList.of( new CommunityAclLine(LineAction.DENY, AllExtendedCommunities.instance())))) .addEqualityGroup(new Object()) .testEquals(); }
@Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof CommunityAcl)) { return false; } return _lines.equals(((CommunityAcl) obj)._lines); }
CommunityAcl extends CommunityMatchExpr { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof CommunityAcl)) { return false; } return _lines.equals(((CommunityAcl) obj)._lines); } }
CommunityAcl extends CommunityMatchExpr { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof CommunityAcl)) { return false; } return _lines.equals(((CommunityAcl) obj)._lines); } CommunityAcl(List<CommunityAclLine> lines); }
CommunityAcl extends CommunityMatchExpr { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof CommunityAcl)) { return false; } return _lines.equals(((CommunityAcl) obj)._lines); } CommunityAcl(List<CommunityAclLine> lines); @JsonProperty(PROP_LINES) @Nonnull List<CommunityAclLine> getLines(); @Override boolean equals(@Nullable Object obj); @Override int hashCode(); @Override T accept(CommunityMatchExprVisitor<T, U> visitor, U arg); }
CommunityAcl extends CommunityMatchExpr { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof CommunityAcl)) { return false; } return _lines.equals(((CommunityAcl) obj)._lines); } CommunityAcl(List<CommunityAclLine> lines); @JsonProperty(PROP_LINES) @Nonnull List<CommunityAclLine> getLines(); @Override boolean equals(@Nullable Object obj); @Override int hashCode(); @Override T accept(CommunityMatchExprVisitor<T, U> visitor, U arg);  }