- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for newArrayList (1.97 sec)
-
guava-tests/test/com/google/common/collect/IteratorsTest.java
} public void testRemoveAll() { List<String> list = newArrayList("a", "b", "c", "d", "e"); assertTrue(Iterators.removeAll(list.iterator(), newArrayList("b", "d", "f"))); assertEquals(newArrayList("a", "c", "e"), list); assertFalse(Iterators.removeAll(list.iterator(), newArrayList("x", "y", "z"))); assertEquals(newArrayList("a", "c", "e"), list); } public void testRemoveIf() {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 18:44:53 UTC 2025 - 56.7K bytes - Viewed (0) -
src/main/java/org/codelibs/core/collection/CollectionsUtil.java
* * @param <E> the element type of {@link ArrayList} * @return a new instance of {@link ArrayList} * @see ArrayList#ArrayList() */ public static <E> ArrayList<E> newArrayList() { return new ArrayList<>(); } /** * Creates and returns a new instance of {@link ArrayList}. * * @param <E> the element type of {@link ArrayList}Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 49.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/MapsTest.java
List<@Nullable String> listWithNull = Lists.newArrayList((String) null); assertThrows( NullPointerException.class, () -> Maps.uniqueIndex((List<String>) listWithNull, Functions.constant(1))); } /** Null keys aren't allowed either. */ public void testUniqueIndexNullKey() { List<String> oneStringList = Lists.newArrayList("foo"); assertThrows( NullPointerException.class,
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 11 22:56:33 UTC 2025 - 62.7K bytes - Viewed (0) -
guava/src/com/google/common/collect/Iterators.java
*/ @GwtIncompatible // Array.newInstance(Class, int) public static <T extends @Nullable Object> T[] toArray( Iterator<? extends T> iterator, Class<@NonNull T> type) { List<T> list = Lists.newArrayList(iterator); return Iterables.<T>toArray(list, type); } /** * Adds all elements in {@code iterator} to {@code collection}. The iterator will be left
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Sep 16 12:42:11 UTC 2025 - 51.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/MapsTest.java
List<@Nullable String> listWithNull = Lists.newArrayList((String) null); assertThrows( NullPointerException.class, () -> Maps.uniqueIndex((List<String>) listWithNull, Functions.constant(1))); } /** Null keys aren't allowed either. */ public void testUniqueIndexNullKey() { List<String> oneStringList = Lists.newArrayList("foo"); assertThrows( NullPointerException.class,
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 11 22:56:33 UTC 2025 - 65K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Sets.java
// quadratic cost of adding them to the COWAS directly. Collection<? extends E> elementsCollection = (elements instanceof Collection) ? (Collection<? extends E>) elements : Lists.newArrayList(elements); return new CopyOnWriteArraySet<>(elementsCollection); } /** * Creates an {@code EnumSet} consisting of all enum values that are not in the specifiedRegistered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Sep 22 18:35:44 UTC 2025 - 81.6K bytes - Viewed (0)