Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for MultimapBuilder (0.09 sec)

  1. android/guava/src/com/google/common/collect/MultimapBuilder.java

     *
     * <pre>{@code
     * ListMultimap<UserId, ErrorResponse> errorsByUser =
     *     MultimapBuilder.linkedHashKeys().arrayListValues().build();
     * SortedSetMultimap<String, Method> methodsForName =
     *     MultimapBuilder.treeKeys().treeSetValues(this::compareMethods).build();
     * }</pre>
     *
     * <p>{@code MultimapBuilder} instances are immutable. Invoking a configuration method has no effect
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/MultimapBuilderTest.java

        for (MultimapBuilderWithKeys<?> builderWithKeys :
            ImmutableList.of(
                MultimapBuilder.hashKeys(),
                MultimapBuilder.linkedHashKeys(),
                MultimapBuilder.treeKeys(),
                MultimapBuilder.enumKeys(RoundingMode.class))) {
          for (MultimapBuilder<?, ?> builder :
              ImmutableList.of(
                  builderWithKeys.arrayListValues(),
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/HashMultimap.java

      /**
       * Creates a new, empty {@code HashMultimap} with the default initial capacities.
       *
       * <p>You may also consider the equivalent {@code
       * MultimapBuilder.hashKeys().hashSetValues().build()}, which provides more control over the
       * underlying data structure.
       */
      public static <K extends @Nullable Object, V extends @Nullable Object>
          HashMultimap<K, V> create() {
    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/CollectCollectors.java

        return collectingAndThen(
            flatteningToMultimap(
                input -> checkNotNull(keyFunction.apply(input)),
                input -> valuesFunction.apply(input).peek(Preconditions::checkNotNull),
                MultimapBuilder.linkedHashKeys().arrayListValues()::<K, V>build),
            ImmutableListMultimap::copyOf);
      }
    
      static <T extends @Nullable Object, K, V>
          Collector<T, ?, ImmutableSetMultimap<K, V>> toImmutableSetMultimap(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/SortedSetMultimap.java

       * for a given key in sorted order, but it need not expose the <i>keys</i> in sorted order.
       * Individual {@code SortedSetMultimap} implementations, like those built with {@link
       * MultimapBuilder#treeKeys()}, may make additional guarantees.
       */
      @Override
      Map<K, Collection<V>> asMap();
    
      /**
       * Returns the comparator that orders the multimap values, with {@code null} indicating that
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 24 17:47:51 UTC 2022
    - 5.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/SortedSetMultimap.java

       * for a given key in sorted order, but it need not expose the <i>keys</i> in sorted order.
       * Individual {@code SortedSetMultimap} implementations, like those built with {@link
       * MultimapBuilder#treeKeys()}, may make additional guarantees.
       */
      @Override
      Map<K, Collection<V>> asMap();
    
      /**
       * Returns the comparator that orders the multimap values, with {@code null} indicating that
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 24 17:47:51 UTC 2022
    - 5.3K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/ServiceManager.java

    import com.google.common.collect.ImmutableSet;
    import com.google.common.collect.ImmutableSetMultimap;
    import com.google.common.collect.Lists;
    import com.google.common.collect.Maps;
    import com.google.common.collect.MultimapBuilder;
    import com.google.common.collect.Multimaps;
    import com.google.common.collect.Multiset;
    import com.google.common.collect.Ordering;
    import com.google.common.collect.SetMultimap;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  8. guava/src/com/google/common/util/concurrent/ServiceManager.java

    import com.google.common.collect.ImmutableSet;
    import com.google.common.collect.ImmutableSetMultimap;
    import com.google.common.collect.Lists;
    import com.google.common.collect.Maps;
    import com.google.common.collect.MultimapBuilder;
    import com.google.common.collect.Multimaps;
    import com.google.common.collect.Multiset;
    import com.google.common.collect.Ordering;
    import com.google.common.collect.SetMultimap;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 33.2K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Multimaps.java

       *                  str -> str.charAt(0),
       *                  str -> str.substring(1),
       *                  MultimapBuilder.treeKeys().arrayListValues()::build));
       *
       * // is equivalent to
       *
       * static final ListMultimap<Character, String> FIRST_LETTER_MULTIMAP;
       *
       * static {
       *     FIRST_LETTER_MULTIMAP = MultimapBuilder.treeKeys().arrayListValues().build();
       *     FIRST_LETTER_MULTIMAP.put('b', "anana");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 86.3K bytes
    - Viewed (0)
Back to top