- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for newLinkedHashSetWithExpectedSize (0.79 sec)
-
guava/src/com/google/common/collect/Platform.java
} /** * Returns the platform preferred implementation of an insertion ordered set based on a hash * table. */ static <E extends @Nullable Object> Set<E> newLinkedHashSetWithExpectedSize(int expectedSize) { return Sets.newLinkedHashSetWithExpectedSize(expectedSize); } /** * Returns the platform preferred map implementation that preserves insertion order when used only * for insertions. */
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 5.5K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/Platform.java
return Collections.newSetFromMap(new ConcurrentHashMap<E, Boolean>()); } static <E extends @Nullable Object> Set<E> newLinkedHashSetWithExpectedSize(int expectedSize) { return Sets.newLinkedHashSetWithExpectedSize(expectedSize); } /** * Returns the platform preferred map implementation that preserves insertion order when used only * for insertions. */
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Jun 10 15:17:16 UTC 2025 - 5.5K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Platform.java
} /** * Returns the platform preferred implementation of an insertion ordered set based on a hash * table. */ static <E extends @Nullable Object> Set<E> newLinkedHashSetWithExpectedSize(int expectedSize) { return CompactLinkedHashSet.createWithExpectedSize(expectedSize); } /** * Returns the platform preferred map implementation that preserves insertion order when used only
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 5.3K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/LinkedHashMultimap.java
* * @return a new {@code LinkedHashSet} containing a collection of values for one key */ @Override Set<V> createCollection() { return Platform.newLinkedHashSetWithExpectedSize(valueSetCapacity); } /** * {@inheritDoc} * * <p>Creates a decorated insertion-ordered set that also keeps track of the order in which * key-value pairs are added to the multimap.
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 19.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/SetsTest.java
} public void testNewLinkedHashSetWithExpectedSizeSmall() { LinkedHashSet<Integer> set = Sets.newLinkedHashSetWithExpectedSize(0); verifySetContents(set, EMPTY_COLLECTION); } public void testNewLinkedHashSetWithExpectedSizeLarge() { LinkedHashSet<Integer> set = Sets.newLinkedHashSetWithExpectedSize(1000); verifySetContents(set, EMPTY_COLLECTION); } public void testNewTreeSetEmpty() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 45.3K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/MultimapBuilder.java
this.expectedValuesPerKey = checkNonnegative(expectedValuesPerKey, "expectedValuesPerKey"); } @Override public Set<V> get() { return Platform.newLinkedHashSetWithExpectedSize(expectedValuesPerKey); } } private static final class TreeSetSupplier<V extends @Nullable Object> implements Supplier<SortedSet<V>>, Serializable {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jul 16 17:42:14 UTC 2025 - 18K bytes - Viewed (0) -
guava/src/com/google/common/collect/MultimapBuilder.java
this.expectedValuesPerKey = checkNonnegative(expectedValuesPerKey, "expectedValuesPerKey"); } @Override public Set<V> get() { return Platform.newLinkedHashSetWithExpectedSize(expectedValuesPerKey); } } private static final class TreeSetSupplier<V extends @Nullable Object> implements Supplier<SortedSet<V>>, Serializable {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jul 16 17:42:14 UTC 2025 - 18K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Sets.java
* @since 11.0 */ @SuppressWarnings("NonApiType") // acts as a direct substitute for a constructor call public static <E extends @Nullable Object> LinkedHashSet<E> newLinkedHashSetWithExpectedSize( int expectedSize) { return new LinkedHashSet<>(Maps.capacity(expectedSize)); } // TreeSet /**
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 81.6K bytes - Viewed (0)