@Test public void testIsEmpty() { final UserNotifications notifications = new UserNotifications(); assertThat(notifications.isEmpty()).isTrue(); assertThat(notifications.getUnseen()).isEmpty(); assertThat(notifications.getSeen()).isEmpty(); }
public boolean isEmpty() { return Iterables.isEmpty(unseen) && Iterables.isEmpty(seen); }
UserNotifications { public boolean isEmpty() { return Iterables.isEmpty(unseen) && Iterables.isEmpty(seen); } }
UserNotifications { public boolean isEmpty() { return Iterables.isEmpty(unseen) && Iterables.isEmpty(seen); } UserNotifications(final Iterable<Notification> unseen, final Iterable<Notification> seen);  UserNotifications(final Stream<Notification> unseen, final Stream<Notification> seen);  UserNotifications(final Iterable<Notification> unseen);  UserNotifications(final Stream<Notification> unseen);  UserNotifications(); }
UserNotifications { public boolean isEmpty() { return Iterables.isEmpty(unseen) && Iterables.isEmpty(seen); } UserNotifications(final Iterable<Notification> unseen, final Iterable<Notification> seen);  UserNotifications(final Stream<Notification> unseen, final Stream<Notification> seen);  UserNotifications(final Iterable<Notification> unseen);  UserNotifications(final Stream<Notification> unseen);  UserNotifications(); boolean isEmpty(); Iterable<Notification> getUnseen(); Iterable<Notification> getSeen(); ImmutableSortedSet<Notification> getNotifications(); @Override boolean equals(final Object obj); @Override int hashCode(); @Override String toString(); }
UserNotifications { public boolean isEmpty() { return Iterables.isEmpty(unseen) && Iterables.isEmpty(seen); } UserNotifications(final Iterable<Notification> unseen, final Iterable<Notification> seen);  UserNotifications(final Stream<Notification> unseen, final Stream<Notification> seen);  UserNotifications(final Iterable<Notification> unseen);  UserNotifications(final Stream<Notification> unseen);  UserNotifications(); boolean isEmpty(); Iterable<Notification> getUnseen(); Iterable<Notification> getSeen(); ImmutableSortedSet<Notification> getNotifications(); @Override boolean equals(final Object obj); @Override int hashCode(); @Override String toString();  }