Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for RegularImmutableMap (0.11 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
Back to top