- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for newArrayListWithExpectedSize (0.14 sec)
-
android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java
import static com.google.common.base.Preconditions.checkState; import static com.google.common.collect.CollectPreconditions.checkNonnegative; import static com.google.common.collect.Lists.newArrayListWithExpectedSize; import static com.google.common.collect.Maps.safeGet; import static java.lang.Math.max; import static java.util.Objects.requireNonNull; import com.google.common.annotations.GwtIncompatible;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 21.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ListsTest.java
ArrayList<Integer> list = newArrayListWithExpectedSize(0); assertEquals(emptyList(), list); ArrayList<Integer> bigger = newArrayListWithExpectedSize(256); assertEquals(emptyList(), bigger); } public void testNewArrayListWithExpectedSize_negative() { assertThrows(IllegalArgumentException.class, () -> newArrayListWithExpectedSize(-1)); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 35K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ListsTest.java
ArrayList<Integer> list = newArrayListWithExpectedSize(0); assertEquals(emptyList(), list); ArrayList<Integer> bigger = newArrayListWithExpectedSize(256); assertEquals(emptyList(), bigger); } public void testNewArrayListWithExpectedSize_negative() { assertThrows(IllegalArgumentException.class, () -> newArrayListWithExpectedSize(-1)); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 35K bytes - Viewed (0) -
guava/src/com/google/common/collect/Lists.java
*/ @GwtCompatible(serializable = true) @SuppressWarnings("NonApiType") // acts as a direct substitute for a constructor call public static <E extends @Nullable Object> ArrayList<E> newArrayListWithExpectedSize( int estimatedSize) { return new ArrayList<>(computeArrayListCapacity(estimatedSize)); } // LinkedList /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 43.1K bytes - Viewed (0)