- Sort Score
- Num 10 results
- Language All
Results 1 - 5 of 5 for ImmutableMapEntry (0.23 seconds)
-
guava/src/com/google/common/collect/ImmutableMapEntry.java
* * <p>This base implementation has no key or value pointers, so instances of ImmutableMapEntry (but * not its subclasses) can be reused when copied from one ImmutableMap to another. * * @author Louis Wasserman */ @GwtIncompatible // unnecessary class ImmutableMapEntry<K, V> extends SimpleImmutableEntry<K, V> { /** * Creates an {@code ImmutableMapEntry} array to hold parameterized entries. The result must never
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Jul 01 21:42:29 GMT 2025 - 4.6K bytes - Click Count (0) -
guava/src/com/google/common/collect/RegularImmutableMap.java
static <K, V> ImmutableMapEntry<K, V> makeImmutable(Entry<K, V> entry, K key, V value) { boolean reusable = entry instanceof ImmutableMapEntry && ((ImmutableMapEntry<K, V>) entry).isReusable(); return reusable ? (ImmutableMapEntry<K, V>) entry : new ImmutableMapEntry<K, V>(key, value); } /** Makes an entry usable internally by a new ImmutableMap. */
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Dec 26 20:08:09 GMT 2025 - 15.7K bytes - Click Count (0) -
guava/src/com/google/common/collect/RegularImmutableBiMap.java
null, null, (Entry<Object, Object>[]) ImmutableMap.EMPTY_ENTRY_ARRAY, 0, 0); static final double MAX_LOAD_FACTOR = 1.2; private final transient @Nullable ImmutableMapEntry<K, V> @Nullable [] keyTable; private final transient @Nullable ImmutableMapEntry<K, V> @Nullable [] valueTable; @VisibleForTesting final transient Entry<K, V>[] entries; private final transient int mask; private final transient int hashCode;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Dec 26 20:08:09 GMT 2025 - 11.1K bytes - Click Count (0) -
guava/src/com/google/common/collect/JdkBackedImmutableMap.java
if (duplicates.containsKey(key)) { V value = duplicates.get(key); if (value == null) { continue; // delete this duplicate } entry = new ImmutableMapEntry<>(key, value); duplicates.put(key, null); } newEntryArray[outI++] = entry; } entryArray = newEntryArray; }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Sep 23 17:50:58 GMT 2025 - 4.7K bytes - Click Count (0) -
guava/src/com/google/common/collect/ImmutableMap.java
* * <p>A call to {@link Entry#setValue} on the returned entry will always throw {@link * UnsupportedOperationException}. */ static <K, V> Entry<K, V> entryOf(K key, V value) { return new ImmutableMapEntry<>(key, value); } /** * Returns a new builder. The generated builder is equivalent to the builder created by the {@link * Builder} constructor. */Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Mar 08 16:16:42 GMT 2026 - 44.7K bytes - Click Count (0)