Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for orderValuesBy (0.08 sec)

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

            ImmutableSetMultimap.<String, String>builder().orderValuesBy(Ordering.natural());
        assertThrows(IllegalArgumentException.class, () -> builder.expectedValuesPerKey(-1));
      }
    
      public void testBuilderWithExpectedValuesPerKeyZeroOrderValuesBy() {
        ImmutableSetMultimap.Builder<String, String> builder =
            ImmutableSetMultimap.<String, String>builder()
                .orderValuesBy(Ordering.natural())
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java

        ImmutableListMultimap.Builder<String, Integer> builder = ImmutableListMultimap.builder();
        builder.put("b", 3);
        builder.put("d", 2);
        builder.put("a", 5);
        builder.orderValuesBy(Collections.reverseOrder());
        builder.put("c", 4);
        builder.put("a", 2);
        builder.put("b", 6);
        ImmutableListMultimap<String, Integer> multimap = builder.build();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java

        ImmutableListMultimap.Builder<String, Integer> builder = ImmutableListMultimap.builder();
        builder.put("b", 3);
        builder.put("d", 2);
        builder.put("a", 5);
        builder.orderValuesBy(Collections.reverseOrder());
        builder.put("c", 4);
        builder.put("a", 2);
        builder.put("b", 6);
        ImmutableListMultimap<String, Integer> multimap = builder.build();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ImmutableMultimap.java

          return this;
        }
    
        /**
         * Specifies the ordering of the generated multimap's values for each key.
         *
         * @since 8.0
         */
        @CanIgnoreReturnValue
        public Builder<K, V> orderValuesBy(Comparator<? super V> valueComparator) {
          this.valueComparator = checkNotNull(valueComparator);
          return this;
        }
    
        @CanIgnoreReturnValue
        Builder<K, V> combine(Builder<K, V> other) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 27.9K bytes
    - Viewed (0)
Back to top