Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 88 for Equivalence (0.15 sec)

  1. guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java

        BiPredicate<ImmutableSortedSet<String>, ImmutableSortedSet<String>> equivalence =
            Equivalence.equals()
                .onResultOf(ImmutableSortedSet<String>::comparator)
                .and(Equivalence.equals().onResultOf(ImmutableSortedSet::asList))
                .and(Equivalence.equals());
        CollectorTester.of(collector, equivalence)
            .expectCollects(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 46.7K bytes
    - Viewed (0)
  2. android/guava-testlib/test/com/google/common/testing/anotherpackage/ForwardingWrapperTesterTest.java

     */
    
    package com.google.common.testing.anotherpackage;
    
    import static com.google.common.truth.Truth.assertThat;
    import static org.junit.Assert.assertThrows;
    
    import com.google.common.base.Equivalence;
    import com.google.common.base.Function;
    import com.google.common.base.Functions;
    import com.google.common.base.Joiner;
    import com.google.common.base.Predicate;
    import com.google.common.collect.Ordering;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 15.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/BenchmarkHelpers.java

        MapMakerStrongKeysStrongValues {
          @Override
          public <K extends Comparable<K>, V> Map<K, V> create(Map<K, V> map) {
            // We use a "custom" equivalence to force MapMaker to make a MapMakerInternalMap.
            ConcurrentMap<K, V> newMap = new MapMaker().keyEquivalence(Equivalence.equals()).makeMap();
            checkState(newMap instanceof MapMakerInternalMap);
            newMap.putAll(map);
            return newMap;
          }
        },
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  4. android/guava-testlib/test/com/google/common/testing/EquivalenceTesterTest.java

    import static com.google.common.testing.ReflectionFreeAssertThrows.assertThrows;
    import static com.google.common.truth.Truth.assertThat;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.base.Equivalence;
    import com.google.common.base.MoreObjects;
    import com.google.common.collect.ImmutableMap;
    import com.google.common.collect.ImmutableTable;
    import junit.framework.AssertionFailedError;
    import junit.framework.TestCase;
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  5. guava-testlib/test/com/google/common/testing/EquivalenceTesterTest.java

    import static com.google.common.testing.ReflectionFreeAssertThrows.assertThrows;
    import static com.google.common.truth.Truth.assertThat;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.base.Equivalence;
    import com.google.common.base.MoreObjects;
    import com.google.common.collect.ImmutableMap;
    import com.google.common.collect.ImmutableTable;
    import junit.framework.AssertionFailedError;
    import junit.framework.TestCase;
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Interners.java

    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import com.google.common.annotations.VisibleForTesting;
    import com.google.common.base.Equivalence;
    import com.google.common.base.Function;
    import com.google.common.collect.MapMaker.Dummy;
    import com.google.common.collect.MapMakerInternalMap.InternalEntry;
    import javax.annotation.CheckForNull;
    
    /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Mar 13 14:30:51 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  7. 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-tests/test/com/google/common/collect/ConcurrentHashMultisetTest.java

    import static org.mockito.ArgumentMatchers.isA;
    import static org.mockito.Mockito.eq;
    import static org.mockito.Mockito.mock;
    import static org.mockito.Mockito.when;
    
    import com.google.common.base.Equivalence;
    import com.google.common.collect.testing.features.CollectionFeature;
    import com.google.common.collect.testing.features.CollectionSize;
    import com.google.common.collect.testing.google.MultisetTestSuiteBuilder;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/BenchmarkHelpers.java

        MapMakerStrongKeysStrongValues {
          @Override
          public <K extends Comparable<K>, V> Map<K, V> create(Map<K, V> map) {
            // We use a "custom" equivalence to force MapMaker to make a MapMakerInternalMap.
            ConcurrentMap<K, V> newMap = new MapMaker().keyEquivalence(Equivalence.equals()).makeMap();
            checkState(newMap instanceof MapMakerInternalMap);
            newMap.putAll(map);
            return newMap;
          }
        },
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

      enum Strength {
        STRONG {
          @Override
          Equivalence<Object> defaultEquivalence() {
            return Equivalence.equals();
          }
        },
    
        WEAK {
          @Override
          Equivalence<Object> defaultEquivalence() {
            return Equivalence.identity();
          }
        };
    
        /**
         * Returns the default equivalence strategy used to compare and hash keys or values referenced
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 90.8K bytes
    - Viewed (0)
Back to top