Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 150 for MultiMap (0.09 sec)

  1. 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)
  2. android/guava/src/com/google/common/collect/SetMultimap.java

    import java.util.Set;
    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.
     *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 24 17:47:51 UTC 2022
    - 4.5K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/SetMultimap.java

    import java.util.Set;
    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.
     *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 24 17:47:51 UTC 2022
    - 4.5K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ImmutableListMultimap.java

        if (multimap.isEmpty()) {
          return of();
        }
    
        // TODO(lowasser): copy ImmutableSetMultimap by using asList() on the sets
        if (multimap instanceof ImmutableListMultimap) {
          @SuppressWarnings("unchecked") // safe since multimap is not writable
          ImmutableListMultimap<K, V> kvMultimap = (ImmutableListMultimap<K, V>) multimap;
          if (!kvMultimap.isPartialView()) {
            return kvMultimap;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/Serialization.java

       */
      static <K extends @Nullable Object, V extends @Nullable Object> void writeMultimap(
          Multimap<K, V> multimap, ObjectOutputStream stream) throws IOException {
        stream.writeInt(multimap.asMap().size());
        for (Map.Entry<K, Collection<V>> entry : multimap.asMap().entrySet()) {
          stream.writeObject(entry.getKey());
          stream.writeInt(entry.getValue().size());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Mar 06 16:06:58 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/ImmutableMultimapTest.java

        Multimap<Integer, UnhashableObject> multimap = ImmutableMultimap.of(0, unhashables.e0());
        assertEquals(1, multimap.get(0).size());
        assertTrue(multimap.get(0).contains(unhashables.e0()));
      }
    
      public void testUnhashableMixedValues() {
        SampleElements<UnhashableObject> unhashables = new Unhashables();
        Multimap<Integer, Object> multimap =
            ImmutableMultimap.<Integer, Object>of(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapContainsValueTester.java

    @SuppressWarnings("JUnit4ClassUsedInJUnit3")
    public class MultimapContainsValueTester<K, V>
        extends AbstractMultimapTester<K, V, Multimap<K, V>> {
      @CollectionSize.Require(absent = ZERO)
      public void testContainsValueYes() {
        assertTrue(multimap().containsValue(v0()));
      }
    
      public void testContainsValueNo() {
        assertFalse(multimap().containsValue(v3()));
      }
    
      @MapFeature.Require(ALLOWS_NULL_VALUES)
      @CollectionSize.Require(absent = ZERO)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 19:10:20 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/google/AbstractListMultimapTester.java

        assertEqualInOrder(values, multimap().get(key));
    
        if (!values.isEmpty()) {
          assertEqualInOrder(values, multimap().asMap().get(key));
          assertFalse(multimap().isEmpty());
        } else {
          assertNull(multimap().asMap().get(key));
        }
    
        assertEquals(values.size(), multimap().get(key).size());
        assertEquals(values.size() > 0, multimap().containsKey(key));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/AbstractMultimap.java

      }
    
      /**
       * 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() {
        return asMap().hashCode();
      }
    
      /**
       * Returns a string representation of the multimap, generated by calling {@code toString} on the
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 15 21:08:00 UTC 2021
    - 6.6K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/google/AbstractListMultimapTester.java

        assertEqualInOrder(values, multimap().get(key));
    
        if (!values.isEmpty()) {
          assertEqualInOrder(values, multimap().asMap().get(key));
          assertFalse(multimap().isEmpty());
        } else {
          assertNull(multimap().asMap().get(key));
        }
    
        assertEquals(values.size(), multimap().get(key).size());
        assertEquals(values.size() > 0, multimap().containsKey(key));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 2.1K bytes
    - Viewed (0)
Back to top