@Test public void testEqualsObject() { final AclReaders aclReaders = new AclReaders(0, null, null, 0, null); assertTrue(aclReaders.equals(aclReaders)); assertEquals(new AclReaders(123, null, null, 0, null), new AclReaders(123, null, null, 0, null)); assertNotEquals(new AclReaders(123, null, null, 0, null), new AclReaders(124, null, null, 0, null)); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; AclReaders other = (AclReaders) obj; if (id != other.id) return false; return true; }
AclReaders { @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; AclReaders other = (AclReaders) obj; if (id != other.id) return false; return true; } }
AclReaders { @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; AclReaders other = (AclReaders) obj; if (id != other.id) return false; return true; } AclReaders(long id, List<String> readers, List<String> denied, long aclChangeSetId, String tenantDomain); }
AclReaders { @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; AclReaders other = (AclReaders) obj; if (id != other.id) return false; return true; } AclReaders(long id, List<String> readers, List<String> denied, long aclChangeSetId, String tenantDomain); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj); long getId(); List<String> getReaders(); void setReaders(List readers); List<String> getDenied(); long getAclChangeSetId(); String getTenantDomain(); }
AclReaders { @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; AclReaders other = (AclReaders) obj; if (id != other.id) return false; return true; } AclReaders(long id, List<String> readers, List<String> denied, long aclChangeSetId, String tenantDomain); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj); long getId(); List<String> getReaders(); void setReaders(List readers); List<String> getDenied(); long getAclChangeSetId(); String getTenantDomain();  }