Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for saturatedAbs (0.06 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. android/guava/src/com/google/common/math/IntMath.java

       *       Integer.MIN_VALUE}
       *   <li>{@link Math#absExact(int)}, which throws {@link ArithmeticException} when passed {@code
       *       Integer.MIN_VALUE}
       *   <li>this method, {@code IntMath.saturatedAbs(int)}, which returns {@code Integer.MAX_VALUE}
       *       when passed {@code Integer.MIN_VALUE}
       * </ul>
       *
       * <p>Note that if your only goal is to turn a well-distributed {@code int} (such as a random
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jan 29 22:14:05 GMT 2026
    - 26.1K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/math/LongMathTest.java

        assertEquals(Long.MAX_VALUE, LongMath.saturatedAbs(Long.MIN_VALUE));
        assertEquals(Long.MAX_VALUE, LongMath.saturatedAbs(Long.MAX_VALUE));
        assertEquals(Long.MAX_VALUE, LongMath.saturatedAbs(-Long.MAX_VALUE));
        assertEquals(0, LongMath.saturatedAbs(0));
        assertEquals(1, LongMath.saturatedAbs(1));
        assertEquals(1, LongMath.saturatedAbs(-1));
        assertEquals(10, LongMath.saturatedAbs(10));
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Oct 30 14:15:36 GMT 2025
    - 31.4K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/math/LongMath.java

       *       Long.MIN_VALUE}
       *   <li>{@link Math#absExact(long)}, which throws {@link ArithmeticException} when passed {@code
       *       Long.MIN_VALUE}
       *   <li>this method, {@code LongMath.saturatedAbs(long)}, which returns {@code Long.MAX_VALUE}
       *       when passed {@code Long.MIN_VALUE}
       * </ul>
       *
       * <p>Note that if your only goal is to turn a well-distributed {@code long} (such as a random
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 09 23:01:02 GMT 2026
    - 46.8K bytes
    - Click Count (0)
Back to Top