Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 287 for Ordering$ (0.07 sec)

  1. android/guava/src/com/google/common/collect/SortedLists.java

       * KeyAbsentBehavior)} using {@link Ordering#natural}.
       */
      @SuppressWarnings("rawtypes") // https://github.com/google/guava/issues/989
      public static <E extends Comparable> int binarySearch(
          List<? extends E> list,
          E e,
          KeyPresentBehavior presentBehavior,
          KeyAbsentBehavior absentBehavior) {
        checkNotNull(e);
        return binarySearch(list, e, Ordering.natural(), presentBehavior, absentBehavior);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 11K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapPutTester.java

    @SuppressWarnings("JUnit4ClassUsedInJUnit3")
    public class ListMultimapPutTester<K, V> extends AbstractListMultimapTester<K, V> {
      // MultimapPutTester tests non-duplicate values, but ignores ordering
    
      @MapFeature.Require(SUPPORTS_PUT)
      public void testPutAddsValueAtEnd() {
        for (K key : sampleKeys()) {
          for (V value : sampleValues()) {
            resetContainer();
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  3. guava-tests/benchmark/com/google/common/collect/ComparatorDelegationOverheadBenchmark.java

    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[])}
     * implementation, which uses {@link Comparable#compareTo} directly.
     *
     * @author Louis Wasserman
     */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/UsingToStringOrdering.java

    package com.google.common.collect;
    
    import com.google.common.annotations.GwtCompatible;
    import java.io.Serializable;
    
    /** An ordering that uses the natural order of the string representation of the values. */
    @GwtCompatible(serializable = true)
    @ElementTypesAreNonnullByDefault
    final class UsingToStringOrdering extends Ordering<Object> implements Serializable {
      static final UsingToStringOrdering INSTANCE = new UsingToStringOrdering();
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sun Jun 20 14:22:42 UTC 2021
    - 1.4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/CompoundOrdering.java

    import java.util.Comparator;
    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /** An ordering that tries several comparators in order. */
    @GwtCompatible(serializable = true)
    @ElementTypesAreNonnullByDefault
    final class CompoundOrdering<T extends @Nullable Object> extends Ordering<T>
        implements Serializable {
      final Comparator<? super T>[] comparators;
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ExplicitOrdering.java

    import java.io.Serializable;
    import java.util.List;
    import javax.annotation.CheckForNull;
    
    /** An ordering that compares objects according to a given order. */
    @GwtCompatible(serializable = true)
    @ElementTypesAreNonnullByDefault
    final class ExplicitOrdering<T> extends Ordering<T> implements Serializable {
      final ImmutableMap<T, Integer> rankMap;
    
      ExplicitOrdering(List<T> valuesInOrder) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sun Jun 20 14:22:42 UTC 2021
    - 2K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ExplicitOrdering.java

    import java.io.Serializable;
    import java.util.List;
    import javax.annotation.CheckForNull;
    
    /** An ordering that compares objects according to a given order. */
    @GwtCompatible(serializable = true)
    @ElementTypesAreNonnullByDefault
    final class ExplicitOrdering<T> extends Ordering<T> implements Serializable {
      final ImmutableMap<T, Integer> rankMap;
    
      ExplicitOrdering(List<T> valuesInOrder) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sun Jun 20 14:22:42 UTC 2021
    - 2K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/CallHandshakeTest.kt

          handshakeCertificates.sslSocketFactory().supportedCipherSuites.toList()
      }
    
      @Test
      fun testDefaultHandshakeCipherSuiteOrderingTls12Restricted() {
        // We are avoiding making guarantees on ordering of secondary Platforms.
        platform.assumeNotConscrypt()
        platform.assumeNotBouncyCastle()
    
        val client = makeClient(ConnectionSpec.RESTRICTED_TLS, TlsVersion.TLS_1_2)
    
        val handshake = makeRequest(client)
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

     * @author Ben Yu
     * @since 12.0
     */
    @GwtIncompatible
    @J2ktIncompatible
    @ElementTypesAreNonnullByDefault
    public final class ArbitraryInstances {
    
      private static final Ordering<Field> BY_FIELD_NAME =
          new Ordering<Field>() {
            @Override
            public int compare(Field left, Field right) {
              return left.getName().compareTo(right.getName());
            }
          };
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/TreeMultisetTest.java

                        return TreeMultiset.create(asList(elements));
                      }
    
                      @Override
                      public List<String> order(List<String> insertionOrder) {
                        return Ordering.natural().sortedCopy(insertionOrder);
                      }
                    })
                .withFeatures(
                    CollectionSize.ANY,
                    CollectionFeature.KNOWN_ORDER,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 12.9K bytes
    - Viewed (0)
Back to top