Lines Matching defs:before
72 * after-list but before-list, which means newly added items.
74 * @param before A list
75 * @param after A list to be compared with {@code before}
77 * comparing {@code after} to {@code before}.
79 public static <E> Set<E> getItemsAdded(List<E> before, List<E> after) {
81 set.removeAll(before);
87 * before-list but after-list, which means removed items.
89 * @param before A list
90 * @param after A list to be compared with {@code before}
92 * comparing {@code after} to {@code before}.
94 public static <E> Set<E> getItemsRemoved(List<E> before, List<E> after) {
95 HashSet<E> set = new HashSet<>(before);