Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 21 - 30 of 170 for ImmutableMap (0.07 seconds)

  1. guava-testlib/src/com/google/common/collect/testing/testers/ReflectionFreeAssertThrows.java

        };
    
        // used under GWT, etc., since the override of this method does not exist there
        ImmutableMap<Class<? extends Throwable>, Predicate<Throwable>> exceptions() {
          return ImmutableMap.of();
        }
      }
    
      private static final ImmutableMap<Class<? extends Throwable>, Predicate<Throwable>> INSTANCE_OF =
          ImmutableMap.<Class<? extends Throwable>, Predicate<Throwable>>builder()
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 6.9K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/collect/SingletonImmutableTable.java

      }
    
      @Override
      public ImmutableMap<R, V> column(C columnKey) {
        checkNotNull(columnKey);
        return containsColumn(columnKey)
            ? ImmutableMap.of(singleRowKey, singleValue)
            : ImmutableMap.of();
      }
    
      @Override
      public ImmutableMap<C, Map<R, V>> columnMap() {
        return ImmutableMap.of(singleColumnKey, (Map<R, V>) ImmutableMap.of(singleRowKey, singleValue));
      }
    
      @Override
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 21:07:18 GMT 2025
    - 2.4K bytes
    - Click Count (0)
  3. android/guava/src/com/google/thirdparty/publicsuffix/TrieParser.java

       */
      static ImmutableMap<String, PublicSuffixType> parseTrie(CharSequence... encodedChunks) {
        String encoded = DIRECT_JOINER.join(encodedChunks);
        return parseFullString(encoded);
      }
    
      @VisibleForTesting
      static ImmutableMap<String, PublicSuffixType> parseFullString(String encoded) {
        ImmutableMap.Builder<String, PublicSuffixType> builder = ImmutableMap.builder();
        int encodedLen = encoded.length();
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sun Aug 10 19:54:19 GMT 2025
    - 4K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/collect/MapsTest.java

        Map<Number, Number> map5 = ImmutableMap.<Number, Number>of(1, 2);
        Map<Number, Integer> map6 = ImmutableMap.<Number, Integer>of(1, 2);
        Map<Integer, Object> map7 = ImmutableMap.<Integer, Object>of(1, 2);
        Map<Integer, Number> map8 = ImmutableMap.<Integer, Number>of(1, 2);
        Map<Integer, Integer> map9 = ImmutableMap.<Integer, Integer>of(1, 2);
        Map<? extends Number, ? extends Number> map0 = ImmutableMap.of(1, 2);
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 11 22:56:33 GMT 2025
    - 65K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/collect/ImmutableMapValues.java

    import org.jspecify.annotations.Nullable;
    
    /**
     * {@code values()} implementation for {@link ImmutableMap}.
     *
     * @author Jesse Wilson
     * @author Kevin Bourrillion
     */
    @GwtCompatible
    final class ImmutableMapValues<K, V> extends ImmutableCollection<V> {
      private final ImmutableMap<K, V> map;
    
      ImmutableMapValues(ImmutableMap<K, V> map) {
        this.map = map;
      }
    
      @Override
      public int size() {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 3.5K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/collect/ImmutableEnumMap.java

    final class ImmutableEnumMap<K extends Enum<K>, V> extends IteratorBasedImmutableMap<K, V> {
      static <K extends Enum<K>, V> ImmutableMap<K, V> asImmutable(EnumMap<K, V> map) {
        switch (map.size()) {
          case 0:
            return ImmutableMap.of();
          case 1:
            Entry<K, V> entry = getOnlyElement(map.entrySet());
            return ImmutableMap.of(entry.getKey(), entry.getValue());
          default:
            return new ImmutableEnumMap<>(map);
        }
      }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 3.7K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/collect/MapsTest.java

        Map<Number, Number> map5 = ImmutableMap.<Number, Number>of(1, 2);
        Map<Number, Integer> map6 = ImmutableMap.<Number, Integer>of(1, 2);
        Map<Integer, Object> map7 = ImmutableMap.<Integer, Object>of(1, 2);
        Map<Integer, Number> map8 = ImmutableMap.<Integer, Number>of(1, 2);
        Map<Integer, Integer> map9 = ImmutableMap.<Integer, Integer>of(1, 2);
        Map<? extends Number, ? extends Number> map0 = ImmutableMap.of(1, 2);
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 11 22:56:33 GMT 2025
    - 62.7K bytes
    - Click Count (0)
  8. guava-tests/test/com/google/common/collect/ReflectionFreeAssertThrows.java

        };
    
        // used under GWT, etc., since the override of this method does not exist there
        ImmutableMap<Class<? extends Throwable>, Predicate<Throwable>> exceptions() {
          return ImmutableMap.of();
        }
      }
    
      private static final ImmutableMap<Class<? extends Throwable>, Predicate<Throwable>> INSTANCE_OF =
          ImmutableMap.<Class<? extends Throwable>, Predicate<Throwable>>builder()
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 6.9K bytes
    - Click Count (0)
  9. guava-tests/test/com/google/common/collect/MapsTransformValuesUnmodifiableIteratorTest.java

        Map<String, String> map =
            transformValues(ImmutableMap.<String, Integer>of(), Functions.toStringFunction());
        assertMapsEqual(new HashMap<>(), map);
      }
    
      public void testTransformSingletonMapEquality() {
        Map<String, String> map =
            transformValues(ImmutableMap.of("a", 1), Functions.toStringFunction());
        Map<String, String> expected = ImmutableMap.of("a", "1");
        assertMapsEqual(expected, map);
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 16:03:47 GMT 2025
    - 12.4K bytes
    - Click Count (0)
  10. android/guava-tests/test/com/google/common/primitives/ReflectionFreeAssertThrows.java

        };
    
        // used under GWT, etc., since the override of this method does not exist there
        ImmutableMap<Class<? extends Throwable>, Predicate<Throwable>> exceptions() {
          return ImmutableMap.of();
        }
      }
    
      private static final ImmutableMap<Class<? extends Throwable>, Predicate<Throwable>> INSTANCE_OF =
          ImmutableMap.<Class<? extends Throwable>, Predicate<Throwable>>builder()
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 6.3K bytes
    - Click Count (0)
Back to Top