- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for orderValuesBy (0.16 sec)
-
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) -
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) -
guava/src/com/google/common/collect/ImmutableSetMultimap.java
* * @since 8.0 */ // TODO: Make serialization behavior consistent. @CanIgnoreReturnValue @Override public Builder<K, V> orderValuesBy(Comparator<? super V> valueComparator) { super.orderValuesBy(valueComparator); return this; } /** Returns a newly-created immutable set multimap. */ @Override public ImmutableSetMultimap<K, V> build() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 25.9K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableSetMultimap.java
* * @since 8.0 */ // TODO: Make serialization behavior consistent. @CanIgnoreReturnValue @Override public Builder<K, V> orderValuesBy(Comparator<? super V> valueComparator) { super.orderValuesBy(valueComparator); return this; } /** Returns a newly-created immutable set multimap. */ @Override public ImmutableSetMultimap<K, V> build() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 26.2K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableListMultimap.java
return this; } /** * {@inheritDoc} * * @since 8.0 */ @CanIgnoreReturnValue @Override public Builder<K, V> orderValuesBy(Comparator<? super V> valueComparator) { super.orderValuesBy(valueComparator); return this; } /** Returns a newly-created immutable list multimap. */ @Override public ImmutableListMultimap<K, V> build() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 16 21:21:17 UTC 2024 - 19.3K bytes - Viewed (0) -
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) -
android/guava/src/com/google/common/collect/ImmutableList.java
*/ @SuppressWarnings("unchecked") ImmutableList<E> buildSorted(Comparator<? super E> comparator) { // Currently only used by ImmutableListMultimap.Builder.orderValuesBy. // In particular, this implies that the comparator can never get "removed," so this can't // invalidate future builds. forceCopy = true; Arrays.sort((E[]) contents, 0, size, comparator);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 16 21:21:17 UTC 2024 - 27.7K bytes - Viewed (0) -
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)