Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for Equivalence (0.07 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. guava-tests/test/com/google/common/collect/ImmutableSortedMultisetTest.java

        assertThrows(IllegalArgumentException.class, () -> builder.setCount("a", -2));
      }
    
      public void testToImmutableSortedMultiset() {
        BiPredicate<ImmutableSortedMultiset<String>, ImmutableSortedMultiset<String>> equivalence =
            (ms1, ms2) ->
                ms1.equals(ms2)
                    && ms1.entrySet().asList().equals(ms2.entrySet().asList())
                    && ms1.comparator().equals(ms2.comparator());
        CollectorTester.of(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  9. compat/maven-embedder/src/main/java/org/apache/maven/cli/logging/Slf4jLoggerManager.java

         * <b>Warning</b>: this does not conform to logger name as class name convention.
         * (and what about <code>null</code> and <code>default</code> hint equivalence?)
         */
        public Logger getLoggerForComponent(String role, String hint) {
            return (null == hint
                    ? getLoggerForComponent(role)
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  10. docs/pt/docs/advanced/behind-a-proxy.md

    Alternativamente, se você não tiver uma maneira de fornecer uma opção de linha de comando como `--root-path` ou equivalente, você pode definir o parâmetro `--root-path` ao criar sua aplicação FastAPI:
    
    {* ../../docs_src/behind_a_proxy/tutorial002.py hl[3] *}
    
    Passar o `root_path`h para `FastAPI` seria o equivalente a passar a opção de linha de comando `--root-path` para Uvicorn ou Hypercorn.
    
    ### Sobre `root_path`
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 15:28:18 UTC 2024
    - 12.2K bytes
    - Viewed (0)
Back to top