Search Options

Results per page
Sort
Preferred Languages
Advance

Results 161 - 168 of 168 for Comparators (0.75 sec)

  1. android/guava-testlib/test/com/google/common/testing/ArbitraryInstancesTest.java

    import java.nio.IntBuffer;
    import java.nio.LongBuffer;
    import java.nio.ShortBuffer;
    import java.nio.charset.Charset;
    import java.util.ArrayList;
    import java.util.BitSet;
    import java.util.Collection;
    import java.util.Comparator;
    import java.util.Currency;
    import java.util.Deque;
    import java.util.HashMap;
    import java.util.Iterator;
    import java.util.LinkedList;
    import java.util.List;
    import java.util.ListIterator;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 21.8K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ImmutableClassToInstanceMap.java

        }
      }
    
      /**
       * Returns an immutable map containing the same entries as {@code map}. If {@code map} somehow
       * contains entries with duplicate keys (for example, if it is a {@code SortedMap} whose
       * comparator is not <i>consistent with equals</i>), the results of this method are undefined.
       *
       * <p><b>Note:</b> Despite what the method name suggests, if {@code map} is an {@code
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/ForwardingNavigableMapTest.java

                        }
                        return new StandardImplForwardingNavigableMap<>(map);
                      }
                    })
                .named(
                    "ForwardingNavigableMap[SafeTreeMap] with no comparator and standard "
                        + "implementations")
                .withFeatures(
                    CollectionSize.ANY,
                    CollectionFeature.KNOWN_ORDER,
                    MapFeature.ALLOWS_NULL_VALUES,
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  4. docs/smb3-features/03-multi-channel-design.md

            }
        }
        
        private ChannelInfo selectLeastLoaded(Collection<ChannelInfo> channels) {
            return channels.stream()
                .min(Comparator.comparingLong(ChannelInfo::getRequestsPending))
                .orElseThrow();
        }
        
        private ChannelInfo selectWeightedRandom(Collection<ChannelInfo> channels) {
            // Calculate total weight
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 39.6K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java

        entries =
            copyToList(
                getSubjectGenerator()
                    .getSampleElements(getSubjectGenerator().getCollectionSize().getNumElements()));
        sort(entries, sortedMultiset.comparator());
    
        // some tests assume SEVERAL == 3
        if (entries.size() >= 1) {
          a = Multisets.immutableEntry(entries.get(0), sortedMultiset.count(entries.get(0)));
          if (entries.size() >= 3) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 20:14:36 UTC 2024
    - 26K bytes
    - Viewed (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/CipherSuite.kt

         * some IBM JVMs use the "SSL_" prefix everywhere whereas Oracle JVMs mix "TLS_" and "SSL_".
         */
        internal val ORDER_BY_NAME =
          object : Comparator<String> {
            override fun compare(
              a: String,
              b: String,
            ): Int {
              var i = 4
              val limit = minOf(a.length, b.length)
              while (i < limit) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 39.9K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java

        entries =
            copyToList(
                getSubjectGenerator()
                    .getSampleElements(getSubjectGenerator().getCollectionSize().getNumElements()));
        sort(entries, sortedMultiset.comparator());
    
        // some tests assume SEVERAL == 3
        if (entries.size() >= 1) {
          a = Multisets.immutableEntry(entries.get(0), sortedMultiset.count(entries.get(0)));
          if (entries.size() >= 3) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 20:14:36 UTC 2024
    - 26K bytes
    - Viewed (0)
  8. okhttp/src/androidMain/baseline-prof.txt

    HSPLokhttp3/internal/_UtilCommonKt;->hasIntersection([Ljava/lang/String;[Ljava/lang/String;Ljava/util/Comparator;)Z
    HSPLokhttp3/internal/_UtilCommonKt;->indexOfFirstNonAsciiWhitespace(Ljava/lang/String;II)I
    HSPLokhttp3/internal/_UtilCommonKt;->indexOfLastNonAsciiWhitespace(Ljava/lang/String;II)I
    HSPLokhttp3/internal/_UtilCommonKt;->intersect([Ljava/lang/String;[Ljava/lang/String;Ljava/util/Comparator;)[Ljava/lang/String;
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Dec 30 23:28:56 UTC 2024
    - 127.9K bytes
    - Viewed (0)
Back to top