Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for ofEntries (0.19 sec)

  1. android/guava-tests/test/com/google/common/collect/ImmutableMapTest.java

                ImmutableMap.of(),
                ImmutableMap.builder().buildOrThrow(),
                ImmutableMap.ofEntries(),
                map())
            .addEqualityGroup(
                ImmutableMap.of(1, 1),
                ImmutableMap.builder().put(1, 1).buildOrThrow(),
                ImmutableMap.ofEntries(entry(1, 1)),
                map(1, 1))
            .addEqualityGroup(
                ImmutableMap.of(1, 1, 2, 2),
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 36.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/ImmutableMapTest.java

                ImmutableMap.of(),
                ImmutableMap.builder().buildOrThrow(),
                ImmutableMap.ofEntries(),
                map())
            .addEqualityGroup(
                ImmutableMap.of(1, 1),
                ImmutableMap.builder().put(1, 1).buildOrThrow(),
                ImmutableMap.ofEntries(entry(1, 1)),
                map(1, 1))
            .addEqualityGroup(
                ImmutableMap.of(1, 1, 2, 2),
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 27 13:27:08 GMT 2024
    - 41.3K bytes
    - Viewed (0)
  3. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableBiMap.java

                k1, v1, k2, v2, k3, v3, k4, v4, k5, v5, k6, v6, k7, v7, k8, v8, k9, v9, k10, v10));
      }
    
      @SafeVarargs
      public static <K, V> ImmutableBiMap<K, V> ofEntries(Entry<? extends K, ? extends V>... entries) {
        return new RegularImmutableBiMap<K, V>(ImmutableMap.ofEntries(entries));
      }
    
      public static <K, V> Builder<K, V> builder() {
        return new Builder<K, V>();
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 23 18:43:40 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/ImmutableBiMapTest.java

        }
      }
    
      public void testOfEntries() {
        assertMapEquals(ImmutableBiMap.ofEntries(entry("one", 1), entry("two", 2)), "one", 1, "two", 2);
      }
    
      public void testOfEntriesNull() {
        Entry<@Nullable Integer, Integer> nullKey = entry(null, 23);
        try {
          ImmutableBiMap.ofEntries((Entry<Integer, Integer>) nullKey);
          fail();
        } catch (NullPointerException expected) {
        }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 22.4K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/ImmutableBiMapTest.java

        }
      }
    
      public void testOfEntries() {
        assertMapEquals(ImmutableBiMap.ofEntries(entry("one", 1), entry("two", 2)), "one", 1, "two", 2);
      }
    
      public void testOfEntriesNull() {
        Entry<@Nullable Integer, Integer> nullKey = entry(null, 23);
        try {
          ImmutableBiMap.ofEntries((Entry<Integer, Integer>) nullKey);
          fail();
        } catch (NullPointerException expected) {
        }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 21.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ImmutableBiMap.java

      }
    
      // looking for of() with > 10 entries? Use the builder or ofEntries instead.
    
      /**
       * Returns an immutable map containing the given entries, in order.
       *
       * @throws IllegalArgumentException if duplicate keys or values are provided
       * @since 31.0
       */
      @SafeVarargs
      public static <K, V> ImmutableBiMap<K, V> ofEntries(Entry<? extends K, ? extends V>... entries) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 08 18:58:42 GMT 2023
    - 22K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ImmutableBiMap.java

      }
    
      // looking for of() with > 10 entries? Use the builder or ofEntries instead.
    
      /**
       * Returns an immutable map containing the given entries, in order.
       *
       * @throws IllegalArgumentException if duplicate keys or values are provided
       * @since 31.0
       */
      @SafeVarargs
      public static <K, V> ImmutableBiMap<K, V> ofEntries(Entry<? extends K, ? extends V>... entries) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Oct 31 16:03:42 GMT 2023
    - 22.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

       * Not supported. Use {@code ImmutableSortedMap.copyOf(ImmutableMap.ofEntries(...))}.
       *
       * @deprecated Use {@code ImmutableSortedMap.copyOf(ImmutableMap.ofEntries(...))}.
       */
      @DoNotCall("ImmutableSortedMap.ofEntries not currently available; use ImmutableSortedMap.copyOf")
      @Deprecated
      @SafeVarargs
      public static <K, V> ImmutableSortedMap<K, V> ofEntries(
          Entry<? extends K, ? extends V>... entries) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 52.7K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/ImmutableSortedMap.java

       * Not supported. Use {@code ImmutableSortedMap.copyOf(ImmutableMap.ofEntries(...))}.
       *
       * @deprecated Use {@code ImmutableSortedMap.copyOf(ImmutableMap.ofEntries(...))}.
       */
      @DoNotCall("ImmutableSortedMap.ofEntries not currently available; use ImmutableSortedMap.copyOf")
      @Deprecated
      @SafeVarargs
      public static <K, V> ImmutableSortedMap<K, V> ofEntries(
          Entry<? extends K, ? extends V>... entries) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 50.3K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/ImmutableMap.java

      }
    
      // looking for of() with > 10 entries? Use the builder or ofEntries instead.
    
      /**
       * Returns an immutable map containing the given entries, in order.
       *
       * @throws IllegalArgumentException if duplicate keys are provided
       * @since 31.0
       */
      @SafeVarargs
      public static <K, V> ImmutableMap<K, V> ofEntries(Entry<? extends K, ? extends V>... entries) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 44.1K bytes
    - Viewed (0)
Back to top