Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 193 for equivalence (0.14 sec)

  1. android/guava/src/com/google/common/cache/CacheBuilder.java

      @CanIgnoreReturnValue
      CacheBuilder<K, V> keyEquivalence(Equivalence<Object> equivalence) {
        checkState(keyEquivalence == null, "key equivalence was already set to %s", keyEquivalence);
        keyEquivalence = checkNotNull(equivalence);
        return this;
      }
    
      Equivalence<Object> getKeyEquivalence() {
        return MoreObjects.firstNonNull(keyEquivalence, getKeyStrength().defaultEquivalence());
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 52K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

              .put(Splitter.class, Splitter.on(','))
              .put(com.google.common.base.Optional.class, com.google.common.base.Optional.absent())
              .put(Predicate.class, Predicates.alwaysTrue())
              .put(Equivalence.class, Equivalence.equals())
              .put(Ticker.class, Ticker.systemTicker())
              .put(Stopwatch.class, Stopwatch.createUnstarted())
              // io types
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  3. 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)
  4. guava-tests/test/com/google/common/collect/ImmutableMultisetTest.java

      }
    
      public void testToImmutableMultiset() {
        BiPredicate<ImmutableMultiset<String>, ImmutableMultiset<String>> equivalence =
            (ms1, ms2) -> ms1.equals(ms2) && ms1.entrySet().asList().equals(ms2.entrySet().asList());
        CollectorTester.of(ImmutableMultiset.<String>toImmutableMultiset(), equivalence)
            .expectCollects(ImmutableMultiset.of())
            .expectCollects(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/ImmutableMapTest.java

            toImmutableMap(Entry::getKey, Entry::getValue);
        Equivalence<ImmutableMap<String, Integer>> equivalence =
            Equivalence.equals().<Entry<String, Integer>>pairwise().onResultOf(ImmutableMap::entrySet);
        CollectorTester.of(collector, equivalence)
            .expectCollects(
                ImmutableMap.of("one", 1, "two", 2, "three", 3),
                mapEntry("one", 1),
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java

        BiPredicate<ImmutableListMultimap<?, ?>, ImmutableListMultimap<?, ?>> equivalence =
            Equivalence.equals()
                .onResultOf((ImmutableListMultimap<?, ?> mm) -> mm.asMap().entrySet().asList())
                .and(Equivalence.equals());
        CollectorTester.of(collector, equivalence)
            .expectCollects(ImmutableListMultimap.of())
            .expectCollects(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. guava-tests/test/com/google/common/collect/ImmutableBiMapTest.java

            toImmutableBiMap(Entry::getKey, Entry::getValue);
        Equivalence<ImmutableBiMap<String, Integer>> equivalence =
            Equivalence.equals()
                .<Entry<String, Integer>>pairwise()
                .onResultOf(ImmutableBiMap::entrySet);
        CollectorTester.of(collector, equivalence)
            .expectCollects(
                ImmutableBiMap.of("one", 1, "two", 2, "three", 3),
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  10. guava/src/com/google/common/cache/CacheBuilder.java

      @CanIgnoreReturnValue
      CacheBuilder<K, V> keyEquivalence(Equivalence<Object> equivalence) {
        checkState(keyEquivalence == null, "key equivalence was already set to %s", keyEquivalence);
        keyEquivalence = checkNotNull(equivalence);
        return this;
      }
    
      Equivalence<Object> getKeyEquivalence() {
        return MoreObjects.firstNonNull(keyEquivalence, getKeyStrength().defaultEquivalence());
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 51.6K bytes
    - Viewed (0)
Back to top