Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 651 for compares (0.05 sec)

  1. android/guava/src/com/google/common/primitives/Doubles.java

       * to the JDK until JDK 7.
       *
       * @param a the first {@code double} to compare
       * @param b the second {@code double} to compare
       * @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
       */
      @InlineMe(replacement = "Double.compare(a, b)")
      public static int compare(double a, double b) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/primitives/Floats.java

       * to the JDK until JDK 7.
       *
       * @param a the first {@code float} to compare
       * @param b the second {@code float} to compare
       * @return the result of invoking {@link Float#compare(float, float)}
       */
      @InlineMe(replacement = "Float.compare(a, b)")
      public static int compare(float a, float b) {
        return Float.compare(a, b);
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 15:52:18 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  3. guava/src/com/google/common/primitives/Floats.java

       * to the JDK until JDK 7.
       *
       * @param a the first {@code float} to compare
       * @param b the second {@code float} to compare
       * @return the result of invoking {@link Float#compare(float, float)}
       */
      @InlineMe(replacement = "Float.compare(a, b)")
      public static int compare(float a, float b) {
        return Float.compare(a, b);
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 15:52:18 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/Ordering.java

       * instead (but note that it does not guarantee which tied minimum element is returned).
       *
       * @param a value to compare, returned if less than or equal to the rest.
       * @param b value to compare
       * @param c value to compare
       * @param rest values to compare
       * @throws ClassCastException if the parameters are not <i>mutually comparable</i> under this
       *     ordering.
       */
      @ParametricNullness
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/primitives/UnsignedInteger.java

      }
    
      /**
       * Compares this unsigned integer to another unsigned integer. Returns {@code 0} if they are
       * equal, a negative number if {@code this < other}, and a positive number if {@code this >
       * other}.
       */
      @Override
      public int compareTo(UnsignedInteger other) {
        checkNotNull(other);
        return compare(value, other.value);
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 23 18:45:50 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  6. guava/src/com/google/common/primitives/UnsignedInteger.java

      }
    
      /**
       * Compares this unsigned integer to another unsigned integer. Returns {@code 0} if they are
       * equal, a negative number if {@code this < other}, and a positive number if {@code this >
       * other}.
       */
      @Override
      public int compareTo(UnsignedInteger other) {
        checkNotNull(other);
        return compare(value, other.value);
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 23 18:45:50 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/PeekingIteratorTest.java

    @SuppressWarnings("serial") // No serialization is used in this test
    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    public class PeekingIteratorTest extends TestCase {
    
      /**
       * Version of {@link IteratorTester} that compares an iterator over a given collection of elements
       * (used as the reference iterator) against a {@code PeekingIterator} that *wraps* such an
       * iterator (used as the target iterator).
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/Helpers.java

            assertTrue(
                comparator + ".compare(" + lesser + ", " + t + ")", comparator.compare(lesser, t) < 0);
          }
    
          assertEquals(comparator + ".compare(" + t + ", " + t + ")", 0, comparator.compare(t, t));
    
          for (int j = i + 1; j < valuesInExpectedOrder.size(); j++) {
            T greater = valuesInExpectedOrder.get(j);
            assertTrue(
                comparator + ".compare(" + greater + ", " + t + ")",
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/primitives/Longs.java

      }
    
      /**
       * Compares the two specified {@code long} values. The sign of the value returned is the same as
       * that of {@code ((Long) a).compareTo(b)}.
       *
       * <p><b>Note:</b> this method is now unnecessary and should be treated as deprecated; use the
       * equivalent {@link Long#compare} method instead.
       *
       * @param a the first {@code long} to compare
       * @param b the second {@code long} to compare
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 29.3K bytes
    - Viewed (0)
  10. guava/src/com/google/common/primitives/Longs.java

      }
    
      /**
       * Compares the two specified {@code long} values. The sign of the value returned is the same as
       * that of {@code ((Long) a).compareTo(b)}.
       *
       * <p><b>Note:</b> this method is now unnecessary and should be treated as deprecated; use the
       * equivalent {@link Long#compare} method instead.
       *
       * @param a the first {@code long} to compare
       * @param b the second {@code long} to compare
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 15:52:18 UTC 2024
    - 29K bytes
    - Viewed (0)
Back to top