Lines Matching defs:collection
119 public static void assertUnmodifiableCollection(Collection<?> collection) {
120 assertUnmodifiableCollection(collection, () -> null);
123 public static <E> void assertUnmodifiableCollection(Collection<E> collection,
125 requireNonNull(collection, "collection");
130 assertUOE(() -> collection.add(e));
131 assertUOE(() -> collection.addAll(singleton(e)));
132 Iterator<?> i = collection.iterator();
137 assertUOE(collection::clear);
138 assertUOE(() -> collection.remove(e));
139 assertUOE(() -> collection.removeAll(singleton(e)));
140 assertUOE(() -> collection.removeIf(x -> true));
141 assertUOE(() -> collection.retainAll(emptyList()));