- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 26 for builderWithExpectedSize (0.17 sec)
-
android/guava/src/com/google/common/collect/ImmutableList.java
* but not exactly, the number of elements added to the builder. * * @since 23.1 */ public static <E> Builder<E> builderWithExpectedSize(int expectedSize) { checkNonnegative(expectedSize, "expectedSize"); return new ImmutableList.Builder<>(expectedSize); } /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 16 21:21:17 UTC 2024 - 27.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableListTest.java
ImmutableList<Integer> unused = builder.build(); } } @GwtIncompatible public void testBuilderExactlySizedReusesArray() { ImmutableList.Builder<Integer> builder = ImmutableList.builderWithExpectedSize(10); Object[] builderArray = builder.contents; for (int i = 0; i < 10; i++) { builder.add(i); } Object[] builderArrayAfterAdds = builder.contents;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 23.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableMapTest.java
} @GwtIncompatible public void testBuilderExactlySizedReusesArray() { ImmutableMap.Builder<Integer, Integer> builder = ImmutableMap.builderWithExpectedSize(10); Entry<Integer, Integer>[] builderArray = builder.entries; for (int i = 0; i < 10; i++) { builder.put(i, i); } Entry<Integer, Integer>[] builderArrayAfterPuts = builder.entries;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 41.1K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableSetMultimap.java
} @Override ImmutableCollection.Builder<V> newValueCollectionBuilderWithExpectedSize(int expectedSize) { return (valueComparator == null) ? ImmutableSet.builderWithExpectedSize(expectedSize) : new ImmutableSortedSet.Builder<V>(valueComparator, expectedSize); } @Override int expectedValueCollectionSize(int defaultExpectedValues, Iterable<?> values) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 25.9K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableSetMultimap.java
} @Override ImmutableCollection.Builder<V> newValueCollectionBuilderWithExpectedSize(int expectedSize) { return (valueComparator == null) ? ImmutableSet.builderWithExpectedSize(expectedSize) : new ImmutableSortedSet.Builder<V>(valueComparator, expectedSize); } @Override int expectedValueCollectionSize(int defaultExpectedValues, Iterable<?> values) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 26.2K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableBiMap.java
* but not exactly, the number of entries added to the builder. * * @since 23.1 */ public static <K, V> Builder<K, V> builderWithExpectedSize(int expectedSize) { checkNonnegative(expectedSize, "expectedSize"); return new Builder<>(expectedSize); } /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 22.6K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableMultimap.java
builderMap = result; } return result; } ImmutableCollection.Builder<V> newValueCollectionBuilderWithExpectedSize(int expectedSize) { return ImmutableList.builderWithExpectedSize(expectedSize); } /** * Provides a hint for how many values will be associated with each key newly added to the
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 27.9K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableList.java
* but not exactly, the number of elements added to the builder. * * @since 23.1 */ public static <E> Builder<E> builderWithExpectedSize(int expectedSize) { checkNonnegative(expectedSize, "expectedSize"); return new ImmutableList.Builder<>(expectedSize); } /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Aug 16 19:14:45 UTC 2024 - 30.5K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableMap.java
* but not exactly, the number of entries added to the builder. * * @since 23.1 */ public static <K, V> Builder<K, V> builderWithExpectedSize(int expectedSize) { checkNonnegative(expectedSize, "expectedSize"); return new Builder<>(expectedSize); } static void checkNoConflict(
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 41.5K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableSortedMap.java
* @deprecated Not supported for ImmutableSortedMap. */ @DoNotCall("Use naturalOrder (which does not accept an expected size)") @Deprecated public static <K, V> ImmutableSortedMap.Builder<K, V> builderWithExpectedSize(int expectedSize) { throw new UnsupportedOperationException(); } /** * Not supported. <b>You are attempting to create a map that may contain a non-{@code Comparable}
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 50.4K bytes - Viewed (0)