Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for HashMultimap (0.09 sec)

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

              return !"badkey".equals(entry.getKey()) && !((Integer) 55556).equals(entry.getValue());
            }
          };
    
      protected Multimap<String, Integer> create() {
        Multimap<String, Integer> unfiltered = HashMultimap.create();
        unfiltered.put("foo", 55556);
        unfiltered.put("badkey", 1);
        return Multimaps.filterEntries(unfiltered, ENTRY_PREDICATE);
      }
    
      private static final Predicate<String> KEY_PREDICATE =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  2. 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);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  3. 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);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/FilteredMultimapTest.java

              return !"badkey".equals(entry.getKey()) && !((Integer) 55556).equals(entry.getValue());
            }
          };
    
      protected Multimap<String, Integer> create() {
        Multimap<String, Integer> unfiltered = HashMultimap.create();
        unfiltered.put("foo", 55556);
        unfiltered.put("badkey", 1);
        return Multimaps.filterEntries(unfiltered, ENTRY_PREDICATE);
      }
    
      private static final Predicate<String> KEY_PREDICATE =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  5. 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)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  6. 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);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 38.4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/eventbus/SubscriberRegistry.java

    import com.google.common.base.Objects;
    import com.google.common.cache.CacheBuilder;
    import com.google.common.cache.CacheLoader;
    import com.google.common.cache.LoadingCache;
    import com.google.common.collect.HashMultimap;
    import com.google.common.collect.ImmutableList;
    import com.google.common.collect.ImmutableSet;
    import com.google.common.collect.Iterators;
    import com.google.common.collect.Lists;
    import com.google.common.collect.Maps;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 15:16:45 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/ArrayListMultimapTest.java

        assertThrows(IllegalArgumentException.class, () -> ArrayListMultimap.create(-15, 2));
      }
    
      public void testCreateFromHashMultimap() {
        Multimap<String, Integer> original = HashMultimap.create();
        ArrayListMultimap<String, Integer> multimap = ArrayListMultimap.create(original);
        assertEquals(3, multimap.expectedValuesPerKey);
      }
    
      public void testCreateFromArrayListMultimap() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java

    import com.google.common.annotations.J2ktIncompatible;
    import com.google.common.annotations.VisibleForTesting;
    import com.google.common.base.Optional;
    import com.google.common.base.Predicate;
    import com.google.common.collect.HashMultimap;
    import com.google.common.collect.ImmutableList;
    import com.google.common.collect.Iterables;
    import com.google.common.collect.Lists;
    import com.google.common.collect.Maps;
    import com.google.common.collect.Multimap;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 19:43:49 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/ArrayListMultimapTest.java

        assertThrows(IllegalArgumentException.class, () -> ArrayListMultimap.create(-15, 2));
      }
    
      public void testCreateFromHashMultimap() {
        Multimap<String, Integer> original = HashMultimap.create();
        ArrayListMultimap<String, Integer> multimap = ArrayListMultimap.create(original);
        assertEquals(3, multimap.expectedValuesPerKey);
      }
    
      public void testCreateFromArrayListMultimap() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 6.5K bytes
    - Viewed (0)
Back to top