Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 320 for compares (0.04 sec)

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

      /**
       * A specification for which index to return if the list contains at least one element that
       * compares as equal to the key.
       */
      enum KeyPresentBehavior {
        /**
         * Return the index of any list element that compares as equal to the key. No guarantees are
         * made as to which index is returned, if more than one element compares as equal to the key.
         */
        ANY_PRESENT {
          @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/ComparisonChain.java

     * compare} methods unconditionally, the {@code ComparisonChain} implementation stops calling its
     * inputs' {@link Comparable#compareTo compareTo} and {@link Comparator#compare compare} methods as
     * soon as one of them returns a nonzero result. This optimization is typically important only in
     * the presence of expensive {@code compareTo} and {@code compare} implementations.
     *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/primitives/Booleans.java

       * @param b the second {@code boolean} to compare
       * @return a positive number if only {@code a} is {@code true}, a negative number if only {@code
       *     b} is true, or zero if {@code a == b}
       */
      @InlineMe(replacement = "Boolean.compare(a, b)")
      public static int compare(boolean a, boolean b) {
        return Boolean.compare(a, b);
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  4. guava/src/com/google/common/primitives/Booleans.java

       * @param b the second {@code boolean} to compare
       * @return a positive number if only {@code a} is {@code true}, a negative number if only {@code
       *     b} is true, or zero if {@code a == b}
       */
      @InlineMe(replacement = "Boolean.compare(a, b)")
      public static int compare(boolean a, boolean b) {
        return Boolean.compare(a, b);
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/primitives/UnsignedLongs.java

       * @return a negative value if {@code a} is less than {@code b}; a positive value if {@code a} is
       *     greater than {@code b}; or zero if they are equal
       */
      @SuppressWarnings("InlineMeInliner") // Integer.compare unavailable under GWT+J2CL
      public static int compare(long a, long b) {
        return Longs.compare(flip(a), flip(b));
      }
    
      /**
       * Returns the least value present in {@code array}, treating values as unsigned.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 17.8K bytes
    - Viewed (0)
  6. android/guava-tests/benchmark/com/google/common/io/CharStreamsCopyBenchmark.java

    import org.jspecify.annotations.NullUnmarked;
    
    /**
     * Benchmarks for {@link CharStreams#copy}.
     *
     * <p>{@link CharStreams#copy} has type specific optimizations for various common Appendable and
     * Reader implementations, this compares the performance of the different options.
     */
    // These benchmarks allocate a lot of data so use a large heap
    @VmOptions({"-Xms12g", "-Xmx12g", "-d64"})
    @NullUnmarked
    public class CharStreamsCopyBenchmark {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ExplicitOrdering.java

    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import java.io.Serializable;
    import java.util.List;
    import org.jspecify.annotations.Nullable;
    
    /** An ordering that compares objects according to a given order. */
    @GwtCompatible
    final class ExplicitOrdering<T> extends Ordering<T> implements Serializable {
      final ImmutableMap<T, Integer> rankMap;
    
      ExplicitOrdering(List<T> valuesInOrder) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jun 04 13:03:16 UTC 2025
    - 2K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/primitives/UnsignedInts.java

       * @return a negative value if {@code a} is less than {@code b}; a positive value if {@code a} is
       *     greater than {@code b}; or zero if they are equal
       */
      @SuppressWarnings("InlineMeInliner") // Integer.compare unavailable under GWT+J2CL
      public static int compare(int a, int b) {
        return Ints.compare(flip(a), flip(b));
      }
    
      /**
       * Returns the value of the given {@code int} as a {@code long}, when treated as unsigned.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Feb 09 16:22:33 UTC 2025
    - 13.8K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/primitives/Chars.java

      }
    
      /**
       * Compares the two specified {@code char} values. The sign of the value returned is the same as
       * that of {@code ((Character) a).compareTo(b)}.
       *
       * <p><b>Note:</b> this method is now unnecessary and should be treated as deprecated; use the
       * equivalent {@link Character#compare} method instead.
       *
       * @param a the first {@code char} to compare
       * @param b the second {@code char} to compare
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 24.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/primitives/Shorts.java

      }
    
      /**
       * Compares the two specified {@code short} values. The sign of the value returned is the same as
       * that of {@code ((Short) a).compareTo(b)}.
       *
       * <p><b>Note:</b> this method is now unnecessary and should be treated as deprecated; use the
       * equivalent {@link Short#compare} method instead.
       *
       * @param a the first {@code short} to compare
       * @param b the second {@code short} to compare
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 25.8K bytes
    - Viewed (0)
Back to top