@Test public void testEquals() { new EqualsTester() .addEqualityGroup(ACL, ACL, new CommunitySetAcl(ImmutableList.of())) .addEqualityGroup( new CommunitySetAcl( ImmutableList.of( new CommunitySetAclLine( LineAction.DENY, new CommunitySetMatchExprReference("a"))))) .addEqualityGroup(new Object()) .testEquals(); }
@Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof CommunitySetAcl)) { return false; } return _lines.equals(((CommunitySetAcl) obj)._lines); }
CommunitySetAcl extends CommunitySetMatchExpr { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof CommunitySetAcl)) { return false; } return _lines.equals(((CommunitySetAcl) obj)._lines); } }
CommunitySetAcl extends CommunitySetMatchExpr { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof CommunitySetAcl)) { return false; } return _lines.equals(((CommunitySetAcl) obj)._lines); } CommunitySetAcl(List<CommunitySetAclLine> lines); }
CommunitySetAcl extends CommunitySetMatchExpr { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof CommunitySetAcl)) { return false; } return _lines.equals(((CommunitySetAcl) obj)._lines); } CommunitySetAcl(List<CommunitySetAclLine> lines); @JsonProperty(PROP_LINES) @Nonnull List<CommunitySetAclLine> getLines(); @Override boolean equals(@Nullable Object obj); @Override int hashCode(); @Override T accept(CommunitySetMatchExprVisitor<T, U> visitor, U arg); }
CommunitySetAcl extends CommunitySetMatchExpr { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof CommunitySetAcl)) { return false; } return _lines.equals(((CommunitySetAcl) obj)._lines); } CommunitySetAcl(List<CommunitySetAclLine> lines); @JsonProperty(PROP_LINES) @Nonnull List<CommunitySetAclLine> getLines(); @Override boolean equals(@Nullable Object obj); @Override int hashCode(); @Override T accept(CommunitySetMatchExprVisitor<T, U> visitor, U arg);  }