@Test public void hasPinnedTasks() { TaskOrUser taskOrUser = buildTaskOrUser(); assertThat(TaskHelper.hasPinnedTasks(taskOrUser)).isTrue(); }
public static boolean hasPinnedTasks(TaskOrUser user) { return !extractTasks(user, Task::isPinned).isEmpty(); }
TaskHelper { public static boolean hasPinnedTasks(TaskOrUser user) { return !extractTasks(user, Task::isPinned).isEmpty(); } }
TaskHelper { public static boolean hasPinnedTasks(TaskOrUser user) { return !extractTasks(user, Task::isPinned).isEmpty(); } private  TaskHelper(); }
TaskHelper { public static boolean hasPinnedTasks(TaskOrUser user) { return !extractTasks(user, Task::isPinned).isEmpty(); } private  TaskHelper(); static boolean isPotentialOwner(Task task, User user); static boolean hasAllLabels(Task task, User user, String labelName); static int countMatchingLabels(Task task, User user, String labelName); static List<Task> extractTasks(TaskOrUser taskOrUser); static List<Task> extractTasks(TaskOrUser taskOrUser, Predicate<Task> predicate); static boolean hasPinnedTasks(TaskOrUser user); }
TaskHelper { public static boolean hasPinnedTasks(TaskOrUser user) { return !extractTasks(user, Task::isPinned).isEmpty(); } private  TaskHelper(); static boolean isPotentialOwner(Task task, User user); static boolean hasAllLabels(Task task, User user, String labelName); static int countMatchingLabels(Task task, User user, String labelName); static List<Task> extractTasks(TaskOrUser taskOrUser); static List<Task> extractTasks(TaskOrUser taskOrUser, Predicate<Task> predicate); static boolean hasPinnedTasks(TaskOrUser user);  }