Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 170 for ImmutableMap (0.16 sec)

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

     *
     * @author Chris Povirk
     */
    @NullUnmarked
    public class FauxveridesTest extends TestCase {
      public void testImmutableBiMap() {
        doHasAllFauxveridesTest(ImmutableBiMap.class, ImmutableMap.class);
      }
    
      public void testImmutableListMultimap() {
        doHasAllFauxveridesTest(ImmutableListMultimap.class, ImmutableMultimap.class);
      }
    
      public void testImmutableSetMultimap() {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/cache/AbstractCache.java

     * the License.
     */
    
    package com.google.common.cache;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.collect.ImmutableMap;
    import java.util.LinkedHashMap;
    import java.util.Map;
    import java.util.Map.Entry;
    import java.util.concurrent.Callable;
    import java.util.concurrent.ConcurrentMap;
    import java.util.concurrent.ExecutionException;
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/base/JoinerTest.java

      }
    
      public void testMap() {
        MapJoiner j = Joiner.on(';').withKeyValueSeparator(':');
        assertEquals("", j.join(ImmutableMap.of()));
        assertEquals(":", j.join(ImmutableMap.of("", "")));
    
        Map<@Nullable String, @Nullable String> mapWithNulls = new LinkedHashMap<>();
        mapWithNulls.put("a", null);
        mapWithNulls.put(null, "b");
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Maps.java

       */
      @CanIgnoreReturnValue
      public static <K, V> ImmutableMap<K, V> uniqueIndex(
          Iterator<V> values, Function<? super V, K> keyFunction) {
        return uniqueIndex(values, keyFunction, ImmutableMap.builder());
      }
    
      private static <K, V> ImmutableMap<K, V> uniqueIndex(
          Iterator<V> values, Function<? super V, K> keyFunction, ImmutableMap.Builder<K, V> builder) {
        checkNotNull(keyFunction);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 23 17:50:58 UTC 2025
    - 157.6K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/Maps.java

       */
      @CanIgnoreReturnValue
      public static <K, V> ImmutableMap<K, V> uniqueIndex(
          Iterator<V> values, Function<? super V, K> keyFunction) {
        return uniqueIndex(values, keyFunction, ImmutableMap.builder());
      }
    
      private static <K, V> ImmutableMap<K, V> uniqueIndex(
          Iterator<V> values, Function<? super V, K> keyFunction, ImmutableMap.Builder<K, V> builder) {
        checkNotNull(keyFunction);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Nov 17 22:50:48 UTC 2025
    - 163.5K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/SingletonImmutableMapMapInterfaceTest.java

    @GwtCompatible
    @NullUnmarked
    public class SingletonImmutableMapMapInterfaceTest
        extends AbstractImmutableMapMapInterfaceTest<String, Integer> {
      @Override
      protected Map<String, Integer> makePopulatedMap() {
        return ImmutableMap.of("one", 1);
      }
    
      @Override
      protected String getKeyNotInPopulatedMap() {
        return "minus one";
      }
    
      @Override
      protected Integer getValueNotInPopulatedMap() {
        return -1;
      }
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  7. guava/src/com/google/common/cache/AbstractCache.java

     * the License.
     */
    
    package com.google.common.cache;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.collect.ImmutableMap;
    import java.util.LinkedHashMap;
    import java.util.Map;
    import java.util.Map.Entry;
    import java.util.concurrent.Callable;
    import java.util.concurrent.ConcurrentMap;
    import java.util.concurrent.ExecutionException;
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java

    import static java.util.concurrent.TimeUnit.SECONDS;
    
    import com.google.common.cache.LocalCache.LocalLoadingCache;
    import com.google.common.cache.LocalCache.Segment;
    import com.google.common.collect.ImmutableMap;
    import com.google.common.collect.ImmutableSet;
    import com.google.common.testing.NullPointerTester;
    import java.lang.Thread.UncaughtExceptionHandler;
    import java.util.Map;
    import java.util.Set;
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 13.3K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/ImmutableClassToInstanceMapTest.java

        ClassToInstanceMap<Object> map = ImmutableClassToInstanceMap.copyOf(in);
        assertTrue(map.isEmpty());
      }
    
      public void testCopyOf_imap_valid() {
        ImmutableMap<Class<? extends Number>, ? extends Number> in =
            ImmutableMap.of(Number.class, 0, Double.class, Math.PI);
        ClassToInstanceMap<Number> map = ImmutableClassToInstanceMap.copyOf(in);
        assertEquals(2, map.size());
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/ImmutableMapWithBadHashesMapInterfaceTest.java

        throw new UnsupportedOperationException();
      }
    
      @Override
      protected Map<Object, Integer> makePopulatedMap() {
        Colliders colliders = new Colliders();
        return ImmutableMap.of(
            colliders.e0(), 0,
            colliders.e1(), 1,
            colliders.e2(), 2,
            colliders.e3(), 3);
      }
    
      @Override
      protected Object getKeyNotInPopulatedMap() {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 1.5K bytes
    - Viewed (0)
Back to top