- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for RegularImmutableMap (0.12 sec)
-
android/guava/src/com/google/common/collect/ImmutableMap.java
* code. * * <p><b>Performance note:</b> the instance returned is a singleton. */ @SuppressWarnings("unchecked") public static <K, V> ImmutableMap<K, V> of() { return (ImmutableMap<K, V>) RegularImmutableMap.EMPTY; } /** * Returns an immutable map containing a single entry. This map behaves and performs comparably to * {@link Collections#singletonMap} but will not accept a null key or value. It is preferable
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/RegularImmutableBiMap.java
import static com.google.common.collect.ImmutableMapEntry.createEntryArray; import static com.google.common.collect.Maps.immutableEntry; import static com.google.common.collect.RegularImmutableMap.MAX_HASH_BUCKET_LENGTH; import static com.google.common.collect.RegularImmutableMap.checkNoConflictInKeyBucket; import static java.util.Objects.requireNonNull; import com.google.common.annotations.GwtCompatible;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 11.3K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableMap.java
return RegularImmutableMap.fromEntries(entryOf(k1, v1), entryOf(k2, v2)); } /** * Returns an immutable map containing the given entries, in order. * * @throws IllegalArgumentException if duplicate keys are provided */ public static <K, V> ImmutableMap<K, V> of(K k1, V v1, K k2, V v2, K k3, V v3) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 44.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableMapTest.java
for (int i = 0; i < 10; i++) { builder.put(i, i); } Entry<Integer, Integer>[] builderArrayAfterPuts = builder.entries; RegularImmutableMap<Integer, Integer> map = (RegularImmutableMap<Integer, Integer>) builder.buildOrThrow(); Entry<Integer, Integer>[] mapInternalArray = map.entries; assertSame(builderArray, builderArrayAfterPuts);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 41.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ImmutableMapTest.java
for (int i = 0; i < 10; i++) { builder.put(i, i); } Object[] builderArrayAfterPuts = builder.alternatingKeysAndValues; RegularImmutableMap<Integer, Integer> map = (RegularImmutableMap<Integer, Integer>) builder.buildOrThrow(); Object[] mapInternalArray = map.alternatingKeysAndValues; assertSame(builderArray, builderArrayAfterPuts);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 36.6K bytes - Viewed (0)