Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for ImmutableMapEntry (0.12 sec)

  1. 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. */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue May 28 18:11:09 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/RegularImmutableBiMap.java

      static final double MAX_LOAD_FACTOR = 1.2;
    
      @CheckForNull private final transient @Nullable ImmutableMapEntry<K, V>[] keyTable;
      @CheckForNull private final transient @Nullable ImmutableMapEntry<K, V>[] valueTable;
      @VisibleForTesting final transient Entry<K, V>[] entries;
      private final transient int mask;
      private final transient int hashCode;
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  3. 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;
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  4. 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.
       */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 44.6K bytes
    - Viewed (0)
Back to top