Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 224 for comparators (0.18 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/google/SortedSetMultimapAsMapTester.java

          assertEquals(multimap().valueComparator(), valueSet.comparator());
        }
      }
    
      public void testAsMapGetImplementsSortedSet() {
        for (K key : multimap().keySet()) {
          SortedSet<V> valueSet = (SortedSet<V>) multimap().asMap().get(key);
          assertEquals(multimap().valueComparator(), valueSet.comparator());
        }
      }
    
      @MapFeature.Require(SUPPORTS_REMOVE)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/ImmutableSetMultimap.java

      }
    
      /**
       * Returned by get() when a missing key is provided. Also holds the comparator, if any, used for
       * values.
       */
      private final transient ImmutableSet<V> emptySet;
    
      ImmutableSetMultimap(
          ImmutableMap<K, ImmutableSet<V>> map,
          int size,
          @CheckForNull Comparator<? super V> valueComparator) {
        super(map, size);
        this.emptySet = emptySet(valueComparator);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 25.9K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/TreeBasedTableTest.java

                .comparator());
      }
    
      public void testRowKeySetComparator() {
        sortedTable = TreeBasedTable.create();
        assertSame(Ordering.natural(), sortedTable.rowKeySet().comparator());
    
        sortedTable = TreeBasedTable.create(Collections.reverseOrder(), Ordering.usingToString());
        assertSame(Collections.reverseOrder(), sortedTable.rowKeySet().comparator());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 15K bytes
    - Viewed (0)
  4. istioctl/pkg/writer/compare/route.go

    	"bytes"
    	"fmt"
    	"time"
    
    	"github.com/pmezard/go-difflib/difflib"
    
    	"istio.io/istio/pkg/util/protomarshal"
    )
    
    // RouteDiff prints a diff between Istiod and Envoy routes to the passed writer
    func (c *Comparator) RouteDiff() error {
    	envoyBytes, istiodBytes := &bytes.Buffer{}, &bytes.Buffer{}
    	envoyRouteDump, err := c.envoy.GetDynamicRouteDump(true)
    	if err != nil {
    		envoyBytes.WriteString(err.Error())
    	} else {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Tue Mar 12 10:02:09 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  5. impl/maven-core/src/main/java/org/apache/maven/internal/impl/SisuDiBridgeModule.java

                };
            }
    
            private <Q> Q getInstance(Binding<Q> binding) {
                return compile(binding).get();
            }
    
            private static Comparator<Binding<?>> getBindingComparator() {
                Comparator<Binding<?>> comparing = Comparator.comparing(Binding::getPriority);
                return comparing.reversed();
            }
    
            private <T> boolean isPlexusBean(BeanEntry<Annotation, T> entry) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/helper/ThemeHelper.java

    package org.codelibs.fess.helper;
    
    import java.io.IOException;
    import java.nio.file.FileVisitOption;
    import java.nio.file.Files;
    import java.nio.file.Path;
    import java.nio.file.StandardCopyOption;
    import java.util.Comparator;
    import java.util.stream.Stream;
    import java.util.zip.ZipEntry;
    import java.util.zip.ZipInputStream;
    
    import org.apache.logging.log4j.LogManager;
    import org.apache.logging.log4j.Logger;
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

     * returned.
     *
     * <p>All default instances returned by {@link #get} are generics-safe. Clients won't get type
     * errors for using {@code get(Comparator.class)} as a {@code Comparator<Foo>}, for example.
     * Immutable empty instances are returned for collection types; {@code ""} for string; {@code 0} for
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Maps.java

        @LazyInit @CheckForNull private transient Comparator<? super K> comparator;
    
        @SuppressWarnings("unchecked")
        @Override
        public Comparator<? super K> comparator() {
          Comparator<? super K> result = comparator;
          if (result == null) {
            Comparator<? super K> forwardCmp = forward().comparator();
            if (forwardCmp == null) {
              forwardCmp = (Comparator) Ordering.natural();
            }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 161.6K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/Maps.java

        @LazyInit @CheckForNull private transient Comparator<? super K> comparator;
    
        @SuppressWarnings("unchecked")
        @Override
        public Comparator<? super K> comparator() {
          Comparator<? super K> result = comparator;
          if (result == null) {
            Comparator<? super K> forwardCmp = forward().comparator();
            if (forwardCmp == null) {
              forwardCmp = (Comparator) Ordering.natural();
            }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 167.4K bytes
    - Viewed (0)
  10. guava-tests/benchmark/com/google/common/collect/ComparatorDelegationOverheadBenchmark.java

    import com.google.caliper.BeforeExperiment;
    import com.google.caliper.Benchmark;
    import com.google.caliper.Param;
    import java.util.Arrays;
    import java.util.Comparator;
    import java.util.Random;
    
    /**
     * A benchmark to determine the overhead of sorting with {@link Ordering#from(Comparator)}, or with
     * {@link Ordering#natural()}, as opposed to using the inlined {@link Arrays#sort(Object[])}
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2.5K bytes
    - Viewed (0)
Back to top