@Test @SuppressWarnings("NullAway") public void testEquals() { final NotificationListObject list = new NotificationListObject(); assertThat(list.equals(null)).isFalse(); }
@Override public boolean equals(final Object obj) { if (this == obj) { return true; } if ((obj == null) || (getClass() != obj.getClass())) { return false; } final NotificationListObject other = (NotificationListObject) obj; return Objects.equals(key, other.key) && Objects.equals(vclock, other.vclock) && Objects.equals(tombstone, other.tombstone) && Objects.equals(contentType, other.contentType) && Objects.equals(lastModified, other.lastModified) && Objects.equals(vtag, other.vtag) && Objects.equals(notifications, other.notifications) && Objects.equals(deletedIds, other.deletedIds); }
NotificationListObject { @Override public boolean equals(final Object obj) { if (this == obj) { return true; } if ((obj == null) || (getClass() != obj.getClass())) { return false; } final NotificationListObject other = (NotificationListObject) obj; return Objects.equals(key, other.key) && Objects.equals(vclock, other.vclock) && Objects.equals(tombstone, other.tombstone) && Objects.equals(contentType, other.contentType) && Objects.equals(lastModified, other.lastModified) && Objects.equals(vtag, other.vtag) && Objects.equals(notifications, other.notifications) && Objects.equals(deletedIds, other.deletedIds); } }
NotificationListObject { @Override public boolean equals(final Object obj) { if (this == obj) { return true; } if ((obj == null) || (getClass() != obj.getClass())) { return false; } final NotificationListObject other = (NotificationListObject) obj; return Objects.equals(key, other.key) && Objects.equals(vclock, other.vclock) && Objects.equals(tombstone, other.tombstone) && Objects.equals(contentType, other.contentType) && Objects.equals(lastModified, other.lastModified) && Objects.equals(vtag, other.vtag) && Objects.equals(notifications, other.notifications) && Objects.equals(deletedIds, other.deletedIds); } NotificationListObject();  NotificationListObject(final String key); }
NotificationListObject { @Override public boolean equals(final Object obj) { if (this == obj) { return true; } if ((obj == null) || (getClass() != obj.getClass())) { return false; } final NotificationListObject other = (NotificationListObject) obj; return Objects.equals(key, other.key) && Objects.equals(vclock, other.vclock) && Objects.equals(tombstone, other.tombstone) && Objects.equals(contentType, other.contentType) && Objects.equals(lastModified, other.lastModified) && Objects.equals(vtag, other.vtag) && Objects.equals(notifications, other.notifications) && Objects.equals(deletedIds, other.deletedIds); } NotificationListObject();  NotificationListObject(final String key); void addNotification(final Notification notification); void addNotifications(final Collection<Notification> notifications); void deleteNotification(final String id); void deleteNotifications(final Collection<String> ids); @Nullable String getKey(); SortedSet<Notification> getNotifications(); Set<String> getDeletedIds(); @Override boolean equals(final Object obj); @Override int hashCode(); @Override String toString(); }
NotificationListObject { @Override public boolean equals(final Object obj) { if (this == obj) { return true; } if ((obj == null) || (getClass() != obj.getClass())) { return false; } final NotificationListObject other = (NotificationListObject) obj; return Objects.equals(key, other.key) && Objects.equals(vclock, other.vclock) && Objects.equals(tombstone, other.tombstone) && Objects.equals(contentType, other.contentType) && Objects.equals(lastModified, other.lastModified) && Objects.equals(vtag, other.vtag) && Objects.equals(notifications, other.notifications) && Objects.equals(deletedIds, other.deletedIds); } NotificationListObject();  NotificationListObject(final String key); void addNotification(final Notification notification); void addNotifications(final Collection<Notification> notifications); void deleteNotification(final String id); void deleteNotifications(final Collection<String> ids); @Nullable String getKey(); SortedSet<Notification> getNotifications(); Set<String> getDeletedIds(); @Override boolean equals(final Object obj); @Override int hashCode(); @Override String toString();  }