@Test public void testEquals() { TraceElement traceElement1 = TraceElement.builder().add("a").build(); TraceElement traceElement2 = TraceElement.builder().add("b").build(); new EqualsTester() .addEqualityGroup( new AclAclLine("name1", "acl1", traceElement1), new AclAclLine("name1", "acl1", traceElement1)) .addEqualityGroup(new AclAclLine("name2", "acl1", traceElement1)) .addEqualityGroup(new AclAclLine("name1", "acl2", traceElement1)) .addEqualityGroup(new AclAclLine("name1", "acl1", traceElement2)) .addEqualityGroup(new Object()) .testEquals(); }
@Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof AclAclLine)) { return false; } AclAclLine other = (AclAclLine) obj; return Objects.equals(_aclName, other._aclName) && Objects.equals(_name, other._name) && Objects.equals(_traceElement, other._traceElement); }
AclAclLine extends AclLine { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof AclAclLine)) { return false; } AclAclLine other = (AclAclLine) obj; return Objects.equals(_aclName, other._aclName) && Objects.equals(_name, other._name) && Objects.equals(_traceElement, other._traceElement); } }
AclAclLine extends AclLine { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof AclAclLine)) { return false; } AclAclLine other = (AclAclLine) obj; return Objects.equals(_aclName, other._aclName) && Objects.equals(_name, other._name) && Objects.equals(_traceElement, other._traceElement); } AclAclLine(String name, String aclName, @Nullable TraceElement traceElement);  AclAclLine(String name, String aclName); }
AclAclLine extends AclLine { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof AclAclLine)) { return false; } AclAclLine other = (AclAclLine) obj; return Objects.equals(_aclName, other._aclName) && Objects.equals(_name, other._name) && Objects.equals(_traceElement, other._traceElement); } AclAclLine(String name, String aclName, @Nullable TraceElement traceElement);  AclAclLine(String name, String aclName); @Nonnull @JsonProperty(PROP_ACL_NAME) String getAclName(); @Override R accept(GenericAclLineVisitor<R> visitor); @Override boolean equals(@Nullable Object obj); @Override int hashCode(); @Override String toString(); }
AclAclLine extends AclLine { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof AclAclLine)) { return false; } AclAclLine other = (AclAclLine) obj; return Objects.equals(_aclName, other._aclName) && Objects.equals(_name, other._name) && Objects.equals(_traceElement, other._traceElement); } AclAclLine(String name, String aclName, @Nullable TraceElement traceElement);  AclAclLine(String name, String aclName); @Nonnull @JsonProperty(PROP_ACL_NAME) String getAclName(); @Override R accept(GenericAclLineVisitor<R> visitor); @Override boolean equals(@Nullable Object obj); @Override int hashCode(); @Override String toString();  }