Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for fromEntries (0.06 sec)

  1. guava/src/com/google/common/collect/ImmutableBiMap.java

        return RegularImmutableBiMap.fromEntries(entryOf(k1, v1), entryOf(k2, v2));
      }
    
      /**
       * Returns an immutable map containing the given entries, in order.
       *
       * @throws IllegalArgumentException if duplicate keys or values are added
       */
      public static <K, V> ImmutableBiMap<K, V> of(K k1, V v1, K k2, V v2, K k3, V v3) {
        return RegularImmutableBiMap.fromEntries(entryOf(k1, v1), entryOf(k2, v2), entryOf(k3, v3));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.6K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/ImmutableSortedMap.java

          if (!kvMap.isPartialView()) {
            return kvMap;
          }
        }
        return fromEntries(comparator, sameComparator, map.entrySet());
      }
    
      private static <K extends Comparable<? super K>, V> ImmutableSortedMap<K, V> fromEntries(
          Entry<K, V>... entries) {
        return fromEntries(Ordering.natural(), false, entries, entries.length);
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 50.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

          if (!kvMap.isPartialView()) {
            return kvMap;
          }
        }
        return fromEntries(comparator, sameComparator, map.entrySet());
      }
    
      private static <K extends Comparable<? super K>, V> ImmutableSortedMap<K, V> fromEntries(
          Entry<K, V>... entries) {
        return fromEntries(Ordering.natural(), false, entries, entries.length);
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 53K bytes
    - Viewed (0)
  4. 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) {
        return RegularImmutableMap.fromEntries(entryOf(k1, v1), entryOf(k2, v2), entryOf(k3, 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)
  5. guava-tests/test/com/google/common/collect/ImmutableMapTest.java

      @GwtIncompatible // SerializableTester
      public void testKeySetIsSerializable_regularImmutableMap() {
        class NonSerializableClass {}
    
        Map<String, NonSerializableClass> map =
            RegularImmutableMap.fromEntries(ImmutableMap.entryOf("one", new NonSerializableClass()));
        Set<String> set = map.keySet();
    
        LenientSerializableTester.reserializeAndAssertLenient(set);
      }
    
      @J2ktIncompatible
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 41.1K bytes
    - Viewed (0)
Back to top