Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 46 for multimaps (0.07 sec)

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

        multimap.put("bar", 5);
        multimap.put("bar", -1);
        multimap.put(nullKey, nullValue);
        multimap.put("foo", nullValue);
        multimap.put(nullKey, 5);
        multimap.put("foo", 2);
    
        if (permitsDuplicates) {
          assertEquals(9, multimap.size());
        } else {
          assertEquals(8, multimap.size());
        }
    
        Multimap<@Nullable String, @Nullable Integer> unmodifiable;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 38.4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/MultimapsCollectionTest.java

                      @Override
                      Multimap<String, String> transform(Multimap<String, String> multimap) {
                        return Multimaps.transformEntries(multimap, ENTRY_TRANSFORMER);
                      }
                    })
                .named("Multimaps.transformEntries[Multimap]")
                .withFeatures(
                    CollectionSize.ANY,
                    MapFeature.SUPPORTS_REMOVE,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 28.9K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/MultimapsCollectionTest.java

                      @Override
                      Multimap<String, String> transform(Multimap<String, String> multimap) {
                        return Multimaps.transformEntries(multimap, ENTRY_TRANSFORMER);
                      }
                    })
                .named("Multimaps.transformEntries[Multimap]")
                .withFeatures(
                    CollectionSize.ANY,
                    MapFeature.SUPPORTS_REMOVE,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/MultimapBuilder.java

       *
       * <p>The collections returned by {@link Multimap#keySet()}, {@link Multimap#keys()}, and {@link
       * Multimap#asMap()} will iterate through the keys in sorted order.
       *
       * <p>For all multimaps generated by the resulting builder, the {@link Multimap#keySet()} can be
       * safely cast to a {@link java.util.SortedSet}, and the {@link Multimap#asMap()} can safely be
       * cast to a {@link java.util.SortedMap}.
       */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ImmutableListMultimap.java

       *
       * @throws NullPointerException if any key or value in {@code multimap} is null
       */
      public static <K, V> ImmutableListMultimap<K, V> copyOf(
          Multimap<? extends K, ? extends V> multimap) {
        if (multimap.isEmpty()) {
          return of();
        }
    
        // TODO(lowasser): copy ImmutableSetMultimap by using asList() on the sets
        if (multimap instanceof ImmutableListMultimap) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Aug 16 20:20:32 UTC 2024
    - 19K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/ImmutableSetMultimap.java

       *
       * @throws NullPointerException if any key or value in {@code multimap} is null
       */
      public static <K, V> ImmutableSetMultimap<K, V> copyOf(
          Multimap<? extends K, ? extends V> multimap) {
        return copyOf(multimap, null);
      }
    
      private static <K, V> ImmutableSetMultimap<K, V> copyOf(
          Multimap<? extends K, ? extends V> multimap,
          @CheckForNull Comparator<? super V> valueComparator) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 25.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ImmutableMultimap.java

       *
       * @throws NullPointerException if any key or value in {@code multimap} is null
       */
      public static <K, V> ImmutableMultimap<K, V> copyOf(Multimap<? extends K, ? extends V> multimap) {
        if (multimap instanceof ImmutableMultimap) {
          @SuppressWarnings("unchecked") // safe since multimap is not writable
          ImmutableMultimap<K, V> kvMultimap = (ImmutableMultimap<K, V>) multimap;
          if (!kvMultimap.isPartialView()) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

    import com.google.common.collect.Iterators;
    import com.google.common.collect.ListMultimap;
    import com.google.common.collect.MapDifference;
    import com.google.common.collect.Maps;
    import com.google.common.collect.Multimap;
    import com.google.common.collect.Multimaps;
    import com.google.common.collect.Multiset;
    import com.google.common.collect.Ordering;
    import com.google.common.collect.PeekingIterator;
    import com.google.common.collect.Range;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ImmutableListMultimap.java

       *
       * @throws NullPointerException if any key or value in {@code multimap} is null
       */
      public static <K, V> ImmutableListMultimap<K, V> copyOf(
          Multimap<? extends K, ? extends V> multimap) {
        if (multimap.isEmpty()) {
          return of();
        }
    
        // TODO(lowasser): copy ImmutableSetMultimap by using asList() on the sets
        if (multimap instanceof ImmutableListMultimap) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/FilteredEntryMultimap.java

    /**
     * Implementation of {@link Multimaps#filterEntries(Multimap, Predicate)}.
     *
     * @author Jared Levy
     * @author Louis Wasserman
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    class FilteredEntryMultimap<K extends @Nullable Object, V extends @Nullable Object>
        extends AbstractMultimap<K, V> implements FilteredMultimap<K, V> {
      final Multimap<K, V> unfiltered;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 12.1K bytes
    - Viewed (0)
Back to top