Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for ofEntries (0.11 sec)

  1. 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),
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  2. 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),
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 36.6K 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>();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jan 23 18:43:40 UTC 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);
        assertThrows(
            NullPointerException.class,
            () -> ImmutableBiMap.ofEntries((Entry<Integer, Integer>) nullKey));
        Entry<Integer, @Nullable Integer> nullValue =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  5. 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) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 22.2K bytes
    - Viewed (0)
  6. 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) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 50.4K 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) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 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) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 53K bytes
    - Viewed (0)
  9. android/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) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 41.5K 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) {
    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