Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 88 for Equivalence (0.12 sec)

  1. 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;
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu May 16 14:34:47 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  2. 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 {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 17:40:56 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/base/FunctionalEquivalence.java

    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Equivalence applied on functional result.
     *
     * @author Bob Lee
     * @since 10.0
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    final class FunctionalEquivalence<F, T> extends Equivalence<F> implements Serializable {
    
      private static final long serialVersionUID = 0;
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon May 01 19:48:29 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/base/EquivalenceTest.java

            .addEquivalenceGroup("a")
            .test();
      }
    
      public void testEquals() {
        new EqualsTester()
            .addEqualityGroup(Equivalence.equals(), Equivalence.equals())
            .addEqualityGroup(Equivalence.identity(), Equivalence.identity())
            .testEquals();
      }
    
      @J2ktIncompatible
      @GwtIncompatible // NullPointerTester
      public void testNulls() throws NoSuchMethodException {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  5. 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", new ItemReporter());
      }
    
      public static <T> EquivalenceTester<T> of(Equivalence<? super T> equivalence) {
        return new EquivalenceTester<>(equivalence);
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Apr 25 11:57:12 UTC 2023
    - 4K bytes
    - Viewed (0)
  6. 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", new ItemReporter());
      }
    
      public static <T> EquivalenceTester<T> of(Equivalence<? super T> equivalence) {
        return new EquivalenceTester<>(equivalence);
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Apr 25 11:57:12 UTC 2023
    - 4K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/testing/EqualsTester.java

    import static junit.framework.Assert.assertEquals;
    import static junit.framework.Assert.assertTrue;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.base.Equivalence;
    import com.google.common.collect.Iterables;
    import com.google.common.collect.Lists;
    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import java.util.ArrayList;
    import java.util.List;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 31 19:11:50 UTC 2023
    - 6K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/testing/RelationshipTester.java

       */
      private final Equivalence<? super T> equivalence;
    
      private final String relationshipName;
      private final String hashName;
      private final ItemReporter itemReporter;
      private final List<ImmutableList<T>> groups = Lists.newArrayList();
    
      RelationshipTester(
          Equivalence<? super T> equivalence,
          String relationshipName,
          String hashName,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Apr 25 11:57:12 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  9. guava/src/com/google/common/base/FunctionalEquivalence.java

    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Equivalence applied on functional result.
     *
     * @author Bob Lee
     * @since 10.0
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    final class FunctionalEquivalence<F, T> extends Equivalence<F> implements Serializable {
    
      private static final long serialVersionUID = 0;
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon May 01 19:48:29 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  10. guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java

         */
    
        STRONG {
          @Override
          Equivalence<Object> defaultEquivalence() {
            return Equivalence.equals();
          }
        },
    
        SOFT {
          @Override
          Equivalence<Object> defaultEquivalence() {
            return Equivalence.identity();
          }
        },
    
        WEAK {
          @Override
          Equivalence<Object> defaultEquivalence() {
            return Equivalence.identity();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 27 19:19:19 UTC 2024
    - 21.6K bytes
    - Viewed (0)
Back to top