- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 13 for onResultOf (0.06 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
guava/src/com/google/common/base/Equivalence.java
* non-null objects {@code x} and {@code y}, {@code equivalence.onResultOf(function).equivalent(a, * b)} is true if and only if {@code equivalence.equivalent(function.apply(a), function.apply(b))} * is true. * * <p>For example: * * {@snippet : * Equivalence<Person> SAME_AGE = Equivalence.equals().onResultOf(GET_PERSON_AGE); * } *Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jul 10 01:47:55 GMT 2025 - 15K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/OrderingTest.java
comparator, DECREASING_INTEGER.onResultOf(StringLengthFunction.STRING_LENGTH)) .addEqualityGroup(DECREASING_INTEGER.onResultOf(Functions.constant(1))) .addEqualityGroup(Ordering.natural()) .testEquals(); reserializeAndAssert(comparator); assertThat(comparator.toString()) .isEqualTo("Ordering.natural().reverse().onResultOf(STRING_LENGTH)"); }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 43.2K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/OrderingTest.java
comparator, DECREASING_INTEGER.onResultOf(StringLengthFunction.STRING_LENGTH)) .addEqualityGroup(DECREASING_INTEGER.onResultOf(Functions.constant(1))) .addEqualityGroup(Ordering.natural()) .testEquals(); reserializeAndAssert(comparator); assertThat(comparator.toString()) .isEqualTo("Ordering.natural().reverse().onResultOf(STRING_LENGTH)"); }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 43.2K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/ImmutableSortedMapTest.java
BiPredicate<ImmutableSortedMap<String, Integer>, ImmutableSortedMap<String, Integer>> equivalence = Equivalence.equals() .onResultOf(ImmutableSortedMap<String, Integer>::comparator) .and(Equivalence.equals().onResultOf(map -> map.entrySet().asList())) .and(Equivalence.equals()); ImmutableSortedMap<String, Integer> expected =
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 29.8K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/Ordering.java
* * {@snippet : * Ordering.from(String.CASE_INSENSITIVE_ORDER).onResultOf(Functions.toStringFunction()) * } * * <p><b>Java 8+ users:</b> Use {@code Comparator.comparing(function, thisComparator)} instead * (you can omit the comparator if it is the natural order). */ public <F extends @Nullable Object> Ordering<F> onResultOf(Function<F, ? extends T> function) { return new ByFunctionOrdering<>(function, this);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 23 19:19:10 GMT 2026 - 39.4K bytes - Click Count (0) -
guava/src/com/google/common/collect/Ordering.java
* * {@snippet : * Ordering.from(String.CASE_INSENSITIVE_ORDER).onResultOf(Functions.toStringFunction()) * } * * <p><b>Java 8+ users:</b> Use {@code Comparator.comparing(function, thisComparator)} instead * (you can omit the comparator if it is the natural order). */ public <F extends @Nullable Object> Ordering<F> onResultOf(Function<F, ? extends T> function) { return new ByFunctionOrdering<>(function, this);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 23 19:19:10 GMT 2026 - 39.4K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/ImmutableSetMultimapTest.java
toImmutableSetMultimap(Entry::getKey, Entry::getValue); BiPredicate<ImmutableSetMultimap<?, ?>, ImmutableSetMultimap<?, ?>> equivalence = Equivalence.equals() .onResultOf( (ImmutableSetMultimap<?, ?> mm) -> ImmutableListMultimap.copyOf(mm).asMap().entrySet().asList()) .and(Equivalence.equals()); CollectorTester.of(collector, equivalence)
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 28.9K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/ImmutableSetTest.java
} public void testToImmutableSet() { Collector<String, ?, ImmutableSet<String>> collector = toImmutableSet(); Equivalence<ImmutableSet<String>> equivalence = Equivalence.equals().onResultOf(ImmutableSet::asList); CollectorTester.of(collector, equivalence) .expectCollects(ImmutableSet.of("a", "b", "c", "d"), "a", "b", "a", "c", "b", "b", "d"); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 14.2K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/ImmutableSortedMultisetTest.java
assertEquals(HashMultiset.create(asList("a")), multiset); } public void testCreation_arrayOfArray() { Comparator<String[]> comparator = Ordering.natural().lexicographical().onResultOf(Arrays::asList); String[] array = new String[] {"a"}; Multiset<String[]> multiset = ImmutableSortedMultiset.orderedBy(comparator).add(array).build(); Multiset<String[]> expected = HashMultiset.create();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 19.6K bytes - Click Count (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableMap.java
return buildOrThrow(); } private ImmutableMap<K, V> build(boolean throwIfDuplicateKeys) { if (valueComparator != null) { Collections.sort(entries, Ordering.from(valueComparator).onResultOf(Entry::getValue)); } return fromEntryList(throwIfDuplicateKeys, entries); } public ImmutableMap<K, V> buildOrThrow() { return build(/* throwIfDuplicateKeys= */ true); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 15:51:42 GMT 2026 - 17.2K bytes - Click Count (0)