Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 188 for multimap (0.06 sec)

  1. guava/src/com/google/common/collect/ListMultimap.java

     * "https://github.com/google/guava/wiki/NewCollectionTypesExplained#multimap">{@code Multimap}</a>.
     *
     * @author Jared Levy
     * @since 2.0
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public interface ListMultimap<K extends @Nullable Object, V extends @Nullable Object>
        extends Multimap<K, V> {
      /**
       * {@inheritDoc}
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 24 17:47:51 UTC 2022
    - 3.5K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/google/MultimapAsMapTester.java

        Set<Entry<K, Collection<V>>> asMapEntrySet = multimap().asMap().entrySet();
        Entry<K, Collection<V>> asMapEntry0 = getOnlyElement(asMapEntrySet);
        assertTrue(multimap().put(k1(), v4()));
        assertTrue(asMapEntrySet.remove(asMapEntry0));
        assertEquals(1, multimap().size());
        assertContentsInOrder(multimap().keySet(), k1());
      }
    
      @CollectionSize.Require(SEVERAL)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/HashMultimap.java

       * key-value mapping appears multiple times in the input multimap, it only appears once in the
       * constructed multimap.
       *
       * <p>You may also consider the equivalent {@code
       * MultimapBuilder.hashKeys().hashSetValues().build(multimap)}, which provides more control over
       * the underlying data structure.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Aug 02 10:02:49 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/AbstractMultimap.java

      @Override
      public boolean equals(@CheckForNull Object object) {
        return Multimaps.equalsImpl(this, object);
      }
    
      /**
       * Returns the hash code for this multimap.
       *
       * <p>The hash code of a multimap is defined as the hash code of the map view, as returned by
       * {@link Multimap#asMap}.
       *
       * @see Map#hashCode
       */
      @Override
      public int hashCode() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 15 21:08:00 UTC 2021
    - 6.6K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/FilteredMultimapTest.java

      }
    
      public void testFilterFiltered() {
        Multimap<String, Integer> unfiltered = HashMultimap.create();
        unfiltered.put("foo", 55556);
        unfiltered.put("badkey", 1);
        unfiltered.put("foo", 1);
        Multimap<String, Integer> keyFiltered = filterKeys(unfiltered, KEY_PREDICATE);
        Multimap<String, Integer> filtered = filterValues(keyFiltered, VALUE_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)
  6. guava/src/com/google/common/collect/LinkedListMultimap.java

       * Multimap}. The new multimap has the same {@link Multimap#entries()} iteration order as the
       * input multimap.
       *
       * @param multimap the multimap whose contents are copied to this multimap
       */
      public static <K extends @Nullable Object, V extends @Nullable Object>
          LinkedListMultimap<K, V> create(Multimap<? extends K, ? extends V> multimap) {
        return new LinkedListMultimap<>(multimap);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 13 14:11:58 UTC 2023
    - 27.5K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/google/SortedSetMultimapAsMapTester.java

        for (Collection<V> valueCollection : multimap().asMap().values()) {
          SortedSet<V> valueSet = (SortedSet<V>) valueCollection;
          assertEquals(multimap().valueComparator(), valueSet.comparator());
        }
      }
    
      public void testAsMapGetImplementsSortedSet() {
        for (K key : multimap().keySet()) {
          SortedSet<V> valueSet = (SortedSet<V>) multimap().asMap().get(key);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/SetMultimap.java

    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A {@code Multimap} that cannot hold duplicate key-value pairs. Adding a key-value pair that's
     * already in the multimap has no effect. See the {@link Multimap} documentation for information
     * common to all multimaps.
     *
     * <p>The {@link #get}, {@link #removeAll}, and {@link #replaceValues} methods each return a {@link
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 24 17:47:51 UTC 2022
    - 4.5K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/SetMultimap.java

    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A {@code Multimap} that cannot hold duplicate key-value pairs. Adding a key-value pair that's
     * already in the multimap has no effect. See the {@link Multimap} documentation for information
     * common to all multimaps.
     *
     * <p>The {@link #get}, {@link #removeAll}, and {@link #replaceValues} methods each return a {@link
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 24 17:47:51 UTC 2022
    - 4.5K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/google/SetMultimapAsMapTester.java

      public void testAsMapValuesImplementSet() {
        for (Collection<V> valueCollection : multimap().asMap().values()) {
          assertTrue(valueCollection instanceof Set);
        }
      }
    
      public void testAsMapGetImplementsSet() {
        for (K key : multimap().keySet()) {
          assertTrue(multimap().asMap().get(key) instanceof Set);
        }
      }
    
      @MapFeature.Require(SUPPORTS_REMOVE)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.9K bytes
    - Viewed (0)
Back to top