Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 100 for Equivalence (0.06 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. guava/src/com/google/common/base/Equivalence.java

         * Equivalence<? super T> below, no type could satisfy both that bound and T's own
         * bound. With this type, they have some overlap: in our example, Equivalence<Number>
         * and Equivalence<Object>.
         */
        private final Equivalence<? super @NonNull T> equivalence;
    
        @ParametricNullness private final T reference;
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jul 10 01:47:55 GMT 2025
    - 15K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/base/Equivalence.java

         * Equivalence<? super T> below, no type could satisfy both that bound and T's own
         * bound. With this type, they have some overlap: in our example, Equivalence<Number>
         * and Equivalence<Object>.
         */
        private final Equivalence<? super @NonNull T> equivalence;
    
        @ParametricNullness private final T reference;
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jul 10 01:47:55 GMT 2025
    - 14.5K bytes
    - Click Count (0)
  3. android/guava-testlib/src/com/google/common/testing/EquivalenceTester.java

      private EquivalenceTester(Equivalence<? super T> equivalence) {
        this.equivalence = checkNotNull(equivalence);
        this.delegate =
            new RelationshipTester<>(
                equivalence, "equivalent", "hash", /* itemReporter= */ Item::toString);
      }
    
      public static <T> EquivalenceTester<T> of(Equivalence<? super T> equivalence) {
        return new EquivalenceTester<>(equivalence);
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 4.1K bytes
    - Click Count (0)
  4. guava-testlib/src/com/google/common/testing/EquivalenceTester.java

      private EquivalenceTester(Equivalence<? super T> equivalence) {
        this.equivalence = checkNotNull(equivalence);
        this.delegate =
            new RelationshipTester<>(
                equivalence, "equivalent", "hash", /* itemReporter= */ Item::toString);
      }
    
      public static <T> EquivalenceTester<T> of(Equivalence<? super T> equivalence) {
        return new EquivalenceTester<>(equivalence);
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 4.1K bytes
    - Click Count (0)
  5. android/guava-testlib/src/com/google/common/testing/RelationshipTester.java

       * directly against {@code equals()} rather than through the {@code Equivalence}.
       */
      private final Equivalence<? super T> equivalence;
    
      private final String relationshipName;
      private final String hashName;
      private final ItemReporter itemReporter;
      private final List<ImmutableList<T>> groups = new ArrayList<>();
    
      RelationshipTester(
          Equivalence<? super T> equivalence,
          String relationshipName,
          String hashName,
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 5.9K bytes
    - Click Count (0)
  6. guava-testlib/src/com/google/common/testing/CollectorTester.java

      private CollectorTester(
          Collector<T, A, R> collector, BiPredicate<? super R, ? super R> equivalence) {
        this.collector = checkNotNull(collector);
        this.equivalence = checkNotNull(equivalence);
      }
    
      /**
       * Different orderings for combining the elements of an input array, which must all produce the
       * same result.
       */
      enum CollectStrategy {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu May 15 21:47:56 GMT 2025
    - 6.6K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/collect/ImmutableEnumMapTest.java

            toImmutableEnumMap(Entry::getKey, Entry::getValue);
        Equivalence<ImmutableMap<AnEnum, Integer>> equivalence =
            Equivalence.equals().<Entry<AnEnum, Integer>>pairwise().onResultOf(ImmutableMap::entrySet);
        CollectorTester.of(collector, equivalence)
            .expectCollects(
                ImmutableMap.of(AnEnum.A, 1, AnEnum.C, 2, AnEnum.E, 3),
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Dec 26 20:08:09 GMT 2025
    - 6.7K bytes
    - Click Count (0)
  8. android/guava-testlib/src/com/google/common/testing/CollectorTester.java

      private CollectorTester(
          Collector<T, A, R> collector, BiPredicate<? super R, ? super R> equivalence) {
        this.collector = checkNotNull(collector);
        this.equivalence = checkNotNull(equivalence);
      }
    
      /**
       * Different orderings for combining the elements of an input array, which must all produce the
       * same result.
       */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 16 22:01:32 GMT 2025
    - 6.8K bytes
    - Click Count (0)
  9. guava/src/com/google/common/collect/MapMaker.java

       * #weakKeys} is specified, and {@link Equivalence#equals()} otherwise. The only place this is
       * used is in {@link Interners.WeakInterner}.
       */
      @CanIgnoreReturnValue
      @GwtIncompatible // To be supported
      MapMaker keyEquivalence(Equivalence<Object> equivalence) {
        checkState(keyEquivalence == null, "key equivalence was already set to %s", keyEquivalence);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 12.8K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/base/FunctionalEquivalence.java

    import com.google.common.annotations.J2ktIncompatible;
    import java.io.Serializable;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Equivalence applied on functional result.
     *
     * @author Bob Lee
     * @since 10.0
     */
    @GwtCompatible
    final class FunctionalEquivalence<F, T> extends Equivalence<F> implements Serializable {
    
      @GwtIncompatible @J2ktIncompatible private static final long serialVersionUID = 0;
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Feb 13 17:34:21 GMT 2025
    - 2.3K bytes
    - Click Count (0)
Back to Top