Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for HashMultimap (0.19 sec)

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

        assertEquals(2, multimap.expectedValuesPerKey);
      }
    
      public void testCreateFromMultimap() {
        HashMultimap<String, Integer> multimap = HashMultimap.create();
        multimap.put("foo", 1);
        multimap.put("bar", 2);
        multimap.put("foo", 3);
        HashMultimap<String, Integer> copy = HashMultimap.create(multimap);
        assertEquals(multimap, copy);
        assertEquals(2, copy.expectedValuesPerKey);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/HashMultimapTest.java

        assertEquals(2, multimap.expectedValuesPerKey);
      }
    
      public void testCreateFromMultimap() {
        HashMultimap<String, Integer> multimap = HashMultimap.create();
        multimap.put("foo", 1);
        multimap.put("bar", 2);
        multimap.put("foo", 3);
        HashMultimap<String, Integer> copy = HashMultimap.create(multimap);
        assertEquals(multimap, copy);
        assertEquals(2, copy.expectedValuesPerKey);
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/ImmutableSetMultimapTest.java

        Multimap<String, Integer> multimap = createMultimap();
        Multimap<String, Integer> hashMultimap = HashMultimap.create();
        hashMultimap.putAll("foo", Arrays.asList(1, 3));
        hashMultimap.put("bar", 2);
    
        new EqualsTester()
            .addEqualityGroup(
                multimap,
                createMultimap(),
                hashMultimap,
                ImmutableSetMultimap.<String, Integer>builder()
                    .put("bar", 2)
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 23.4K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/ImmutableSetMultimapTest.java

        Multimap<String, Integer> multimap = createMultimap();
        Multimap<String, Integer> hashMultimap = HashMultimap.create();
        hashMultimap.putAll("foo", Arrays.asList(1, 3));
        hashMultimap.put("bar", 2);
    
        new EqualsTester()
            .addEqualityGroup(
                multimap,
                createMultimap(),
                hashMultimap,
                ImmutableSetMultimap.<String, Integer>builder()
                    .put("bar", 2)
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 24.9K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/MultimapsTest.java

      public void testUnmodifiableHashMultimap() {
        checkUnmodifiableMultimap(HashMultimap.<@Nullable String, @Nullable Integer>create(), false);
      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
      public void testSerializingUnmodifiableHashMultimap() {
        Multimap<String, Integer> unmodifiable =
            prepareUnmodifiableTests(HashMultimap.<String, Integer>create(), false, null, null);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 39.1K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/MultimapsTest.java

      public void testUnmodifiableHashMultimap() {
        checkUnmodifiableMultimap(HashMultimap.<@Nullable String, @Nullable Integer>create(), false);
      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
      public void testSerializingUnmodifiableHashMultimap() {
        Multimap<String, Integer> unmodifiable =
            prepareUnmodifiableTests(HashMultimap.<String, Integer>create(), false, null, null);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 42.2K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/ImmutableMultimapAsMapImplementsMapTest.java

        return ImmutableMultimap.<String, Integer>of().asMap();
      }
    
      @Override
      protected Map<String, Collection<Integer>> makePopulatedMap() {
        Multimap<String, Integer> delegate = HashMultimap.create();
        populate(delegate);
        return ImmutableMultimap.copyOf(delegate).asMap();
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/ImmutableSetMultimapAsMapImplementsMapTest.java

        return ImmutableSetMultimap.<String, Integer>of().asMap();
      }
    
      @Override
      protected Map<String, Collection<Integer>> makePopulatedMap() {
        Multimap<String, Integer> delegate = HashMultimap.create();
        populate(delegate);
        return ImmutableSetMultimap.copyOf(delegate).asMap();
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/ImmutableMultimapAsMapImplementsMapTest.java

        return ImmutableMultimap.<String, Integer>of().asMap();
      }
    
      @Override
      protected Map<String, Collection<Integer>> makePopulatedMap() {
        Multimap<String, Integer> delegate = HashMultimap.create();
        populate(delegate);
        return ImmutableMultimap.copyOf(delegate).asMap();
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/ImmutableSetMultimapAsMapImplementsMapTest.java

        return ImmutableSetMultimap.<String, Integer>of().asMap();
      }
    
      @Override
      protected Map<String, Collection<Integer>> makePopulatedMap() {
        Multimap<String, Integer> delegate = HashMultimap.create();
        populate(delegate);
        return ImmutableSetMultimap.copyOf(delegate).asMap();
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 1.5K bytes
    - Viewed (0)
Back to top