- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 23 for onResultOf (0.06 sec)
-
guava-tests/test/com/google/common/base/EquivalenceTest.java
EquivalenceTester.of(Equivalence.equals().onResultOf(Functions.toStringFunction())) .addEquivalenceGroup(new IntValue(1), new IntValue(1)) .addEquivalenceGroup(new IntValue(2)) .test(); } public void testOnResultOf_equals() { new EqualsTester() .addEqualityGroup( Equivalence.identity().onResultOf(Functions.toStringFunction()),
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Feb 20 17:00:05 UTC 2024 - 6.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/OrderingTest.java
.addEqualityGroup( comparator, DECREASING_INTEGER.onResultOf(StringLengthFunction.StringLength)) .addEqualityGroup(DECREASING_INTEGER.onResultOf(Functions.constant(1))) .addEqualityGroup(Ordering.natural()) .testEquals(); reserializeAndAssert(comparator); assertEquals("Ordering.natural().reverse().onResultOf(StringLength)", comparator.toString()); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 42.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/OrderingTest.java
.addEqualityGroup( comparator, DECREASING_INTEGER.onResultOf(StringLengthFunction.StringLength)) .addEqualityGroup(DECREASING_INTEGER.onResultOf(Functions.constant(1))) .addEqualityGroup(Ordering.natural()) .testEquals(); reserializeAndAssert(comparator); assertEquals("Ordering.natural().reverse().onResultOf(StringLength)", comparator.toString()); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 42.6K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/FuturesGetChecked.java
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Feb 22 17:40:56 UTC 2024 - 11.9K bytes - Viewed (0) -
android/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: * * <pre>{@code * Equivalence<Person> SAME_AGE = Equivalence.equals().onResultOf(GET_PERSON_AGE); * }</pre> *
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu May 16 14:34:47 UTC 2024 - 13.8K bytes - Viewed (0) -
android/guava/src/com/google/common/base/FunctionalEquivalence.java
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon May 01 19:48:29 UTC 2023 - 2.3K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ByFunctionOrdering.java
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sun Jun 20 14:22:42 UTC 2021 - 2.3K bytes - Viewed (0) -
guava/src/com/google/common/base/FunctionalEquivalence.java
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon May 01 19:48:29 UTC 2023 - 2.3K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Ordering.java
* Ordering.from(String.CASE_INSENSITIVE_ORDER) * .onResultOf(Functions.toStringFunction()) * }</pre> * * <p><b>Java 8+ users:</b> Use {@code Comparator.comparing(function, thisComparator)} instead * (you can omit the comparator if it is the natural order). */ @GwtCompatible(serializable = true) public <F extends @Nullable Object> Ordering<F> onResultOf(Function<F, ? extends T> function) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 39.4K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/collect/MinMaxPriorityQueueBenchmark.java
public Comparator<Integer> get() { return Ordering.natural(); } }, EXPENSIVE { @Override public Comparator<Integer> get() { return Ordering.natural().onResultOf(new ExpensiveComputation()); } }; public abstract Comparator<Integer> get(); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Apr 19 19:24:36 UTC 2023 - 4.3K bytes - Viewed (0)