Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 221 - 230 of 233 for ImmutableMap (0.83 seconds)

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

                .createTestSuite());
        suite.addTestSuite(HashBiMapTest.class);
        return suite;
      }
    
      public void testMapConstructor() {
        /* Test with non-empty Map. */
        Map<String, String> map =
            ImmutableMap.of(
                "canada", "dollar",
                "chile", "peso",
                "switzerland", "franc");
        HashBiMap<String, String> bimap = HashBiMap.create(map);
        assertThat(bimap.get("canada")).isEqualTo("dollar");
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 8.4K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/collect/BenchmarkHelpers.java

            return new ConcurrentHashMap<>(map);
          }
        },
        ImmutableMapImpl {
          @Override
          public <K extends Comparable<K>, V> Map<K, V> create(Map<K, V> map) {
            return ImmutableMap.copyOf(map);
          }
        },
        MapMakerStrongKeysStrongValues {
          @Override
          public <K extends Comparable<K>, V> Map<K, V> create(Map<K, V> map) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Aug 10 19:54:19 GMT 2025
    - 12.5K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/collect/BenchmarkHelpers.java

            return new ConcurrentHashMap<>(map);
          }
        },
        ImmutableMapImpl {
          @Override
          public <K extends Comparable<K>, V> Map<K, V> create(Map<K, V> map) {
            return ImmutableMap.copyOf(map);
          }
        },
        MapMakerStrongKeysStrongValues {
          @Override
          public <K extends Comparable<K>, V> Map<K, V> create(Map<K, V> map) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Aug 10 19:54:19 GMT 2025
    - 12.5K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/collect/MultimapsCollectionTest.java

                        multimap.putAll(badEntries);
                        multimap =
                            Multimaps.filterEntries(
                                multimap,
                                not(Predicates.in(ImmutableMap.of("one", 159, "two", 265).entrySet())));
                        return filterKeys(multimap, not(Predicates.in(ImmutableSet.of("foo", "bar"))));
                      }
                    })
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Sep 24 22:52:18 GMT 2025
    - 28.4K bytes
    - Click Count (0)
  5. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedMap.java

      }
    
      public static <K extends Comparable<?>, V> Builder<K, V> reverseOrder() {
        return new Builder<K, V>(Ordering.natural().reverse());
      }
    
      public static final class Builder<K, V> extends ImmutableMap.Builder<K, V> {
        private final Comparator<? super K> comparator;
    
        public Builder(Comparator<? super K> comparator) {
          this.comparator = checkNotNull(comparator);
        }
    
        @CanIgnoreReturnValue
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jan 08 18:10:02 GMT 2026
    - 16.6K bytes
    - Click Count (0)
  6. guava-tests/test/com/google/common/collect/MultimapsCollectionTest.java

                        multimap.putAll(badEntries);
                        multimap =
                            Multimaps.filterEntries(
                                multimap,
                                not(Predicates.in(ImmutableMap.of("one", 159, "two", 265).entrySet())));
                        return filterKeys(multimap, not(Predicates.in(ImmutableSet.of("foo", "bar"))));
                      }
                    })
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Sep 24 22:52:18 GMT 2025
    - 28.6K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/base/Splitter.java

       * MapSplitter mapSplitter = outerSplitter.withKeyValueSeparator(Splitter.on("->"));
       * Map<String, String> result = mapSplitter.split(toSplit);
       * assertThat(result).isEqualTo(ImmutableMap.of("x ", " y", "z", " a"));
       * }
       *
       * @since 10.0
       */
      public MapSplitter withKeyValueSeparator(Splitter keyValueSplitter) {
        return new MapSplitter(this, keyValueSplitter);
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 23.8K bytes
    - Click Count (0)
  8. android/guava-tests/test/com/google/common/collect/TableCollectionTest.java

        }
    
        @Override
        protected String getKeyNotInPopulatedMap() {
          return "cat";
        }
    
        @Override
        protected Map<Integer, Character> getValueNotInPopulatedMap() {
          return ImmutableMap.of();
        }
    
        /**
         * The version of this test supplied by {@link MapInterfaceTest} fails for this particular map
         * implementation, because {@code map.get()} returns a view collection that changes in the
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 35.5K bytes
    - Click Count (0)
  9. guava-tests/test/com/google/common/collect/TableCollectionTest.java

        }
    
        @Override
        protected String getKeyNotInPopulatedMap() {
          return "cat";
        }
    
        @Override
        protected Map<Integer, Character> getValueNotInPopulatedMap() {
          return ImmutableMap.of();
        }
    
        /**
         * The version of this test supplied by {@link MapInterfaceTest} fails for this particular map
         * implementation, because {@code map.get()} returns a view collection that changes in the
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 35.5K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/reflect/TypeToken.java

    import com.google.common.base.Predicate;
    import com.google.common.collect.FluentIterable;
    import com.google.common.collect.ForwardingSet;
    import com.google.common.collect.ImmutableList;
    import com.google.common.collect.ImmutableMap;
    import com.google.common.collect.ImmutableSet;
    import com.google.common.collect.Ordering;
    import com.google.common.primitives.Primitives;
    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jan 29 22:14:05 GMT 2026
    - 53.8K bytes
    - Click Count (0)
Back to Top