Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for onResultOf (0.14 sec)

  1. 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)
  2. 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)
  3. 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)
  4. guava/src/com/google/common/util/concurrent/FuturesGetChecked.java

      private static final Ordering<List<Class<?>>> ORDERING_BY_CONSTRUCTOR_PARAMETER_LIST =
          Ordering.natural()
              .onResultOf((List<Class<?>> params) -> params.contains(String.class))
              .compound(
                  Ordering.natural()
                      .onResultOf((List<Class<?>> params) -> params.contains(Throwable.class)))
              .reverse();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 17:40:56 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  5. 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)
  6. android/guava/src/com/google/common/base/FunctionalEquivalence.java

        return false;
      }
    
      @Override
      public int hashCode() {
        return Objects.hashCode(function, resultEquivalence);
      }
    
      @Override
      public String toString() {
        return resultEquivalence + ".onResultOf(" + function + ")";
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon May 01 19:48:29 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ByFunctionOrdering.java

        }
        return false;
      }
    
      @Override
      public int hashCode() {
        return Objects.hashCode(function, ordering);
      }
    
      @Override
      public String toString() {
        return ordering + ".onResultOf(" + function + ")";
      }
    
      private static final long serialVersionUID = 0;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sun Jun 20 14:22:42 UTC 2021
    - 2.3K bytes
    - Viewed (0)
  8. guava/src/com/google/common/base/FunctionalEquivalence.java

        return false;
      }
    
      @Override
      public int hashCode() {
        return Objects.hashCode(function, resultEquivalence);
      }
    
      @Override
      public String toString() {
        return resultEquivalence + ".onResultOf(" + function + ")";
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon May 01 19:48:29 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top