Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 135 for MIN_VALUE (0.07 sec)

  1. android/guava-tests/test/com/google/common/primitives/DoublesTest.java

            0.1,
            0.5,
            1.0,
            Double.MAX_VALUE,
            GREATEST,
            Double.MIN_NORMAL,
            -Double.MIN_NORMAL,
            Double.MIN_VALUE,
            -Double.MIN_VALUE,
            Integer.MIN_VALUE,
            Integer.MAX_VALUE,
            Long.MIN_VALUE,
            Long.MAX_VALUE
          };
    
      private static final double[] VALUES = Doubles.concat(NUMBERS, new double[] {NaN});
    
      public void testHashCode() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 29 15:43:06 UTC 2024
    - 31.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/primitives/Shorts.java

       *     {@link Short#MAX_VALUE} if it is too large, or {@link Short#MIN_VALUE} if it is too small
       */
      public static short saturatedCast(long value) {
        if (value > Short.MAX_VALUE) {
          return Short.MAX_VALUE;
        }
        if (value < Short.MIN_VALUE) {
          return Short.MIN_VALUE;
        }
        return (short) value;
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 25.1K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/primitives/IntsTest.java

      private static final int[] EMPTY = {};
      private static final int[] ARRAY1 = {(int) 1};
      private static final int[] ARRAY234 = {(int) 2, (int) 3, (int) 4};
    
      private static final int LEAST = Integer.MIN_VALUE;
      private static final int GREATEST = Integer.MAX_VALUE;
    
      private static final int[] VALUES = {LEAST, (int) -1, (int) 0, (int) 1, GREATEST};
    
      public void testHashCode() {
        for (int value : VALUES) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 06 16:10:08 UTC 2024
    - 28.4K bytes
    - Viewed (0)
  4. guava/src/com/google/common/primitives/Shorts.java

       *     {@link Short#MAX_VALUE} if it is too large, or {@link Short#MIN_VALUE} if it is too small
       */
      public static short saturatedCast(long value) {
        if (value > Short.MAX_VALUE) {
          return Short.MAX_VALUE;
        }
        if (value < Short.MIN_VALUE) {
          return Short.MIN_VALUE;
        }
        return (short) value;
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 25.1K bytes
    - Viewed (0)
  5. guava/src/com/google/common/primitives/Ints.java

       *     {@link Integer#MAX_VALUE} if it is too large, or {@link Integer#MIN_VALUE} if it is too
       *     small
       */
      public static int saturatedCast(long value) {
        if (value > Integer.MAX_VALUE) {
          return Integer.MAX_VALUE;
        }
        if (value < Integer.MIN_VALUE) {
          return Integer.MIN_VALUE;
        }
        return (int) value;
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 29.9K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

        assertFalse("Capable of acquiring secondary permit", r.tryAcquire());
      }
    
      public void testDoubleMinValueCanAcquireExactlyOnce() {
        RateLimiter r = RateLimiter.create(Double.MIN_VALUE, stopwatch);
        assertTrue("Unable to acquire initial permit", r.tryAcquire());
        assertFalse("Capable of acquiring an additional permit", r.tryAcquire());
        stopwatch.sleepMillis(Integer.MAX_VALUE);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 21.6K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/math/DoubleMathTest.java

      private static final BigDecimal MIN_INT_AS_BIG_DECIMAL = BigDecimal.valueOf(Integer.MIN_VALUE);
    
      private static final BigDecimal MAX_LONG_AS_BIG_DECIMAL = BigDecimal.valueOf(Long.MAX_VALUE);
      private static final BigDecimal MIN_LONG_AS_BIG_DECIMAL = BigDecimal.valueOf(Long.MIN_VALUE);
    
      public void testConstantsMaxFactorial() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/primitives/CharsTest.java

      private static final char[] EMPTY = {};
      private static final char[] ARRAY1 = {(char) 1};
      private static final char[] ARRAY234 = {(char) 2, (char) 3, (char) 4};
    
      private static final char LEAST = Character.MIN_VALUE;
      private static final char GREATEST = Character.MAX_VALUE;
    
      private static final char[] VALUES = {LEAST, 'a', '\u00e0', '\udcaa', GREATEST};
    
      public void testHashCode() {
        for (char value : VALUES) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

        assertFalse("Capable of acquiring secondary permit", r.tryAcquire());
      }
    
      public void testDoubleMinValueCanAcquireExactlyOnce() {
        RateLimiter r = RateLimiter.create(Double.MIN_VALUE, stopwatch);
        assertTrue("Unable to acquire initial permit", r.tryAcquire());
        assertFalse("Capable of acquiring an additional permit", r.tryAcquire());
        stopwatch.sleepMillis(Integer.MAX_VALUE);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 21.6K bytes
    - Viewed (0)
  10. guava/src/com/google/common/escape/ArrayBasedCharEscaper.java

        if (safeMax < safeMin) {
          // If the safe range is empty, set the range limits to opposite extremes
          // to ensure the first test of either value will (almost certainly) fail.
          safeMax = Character.MIN_VALUE;
          safeMin = Character.MAX_VALUE;
        }
        this.safeMin = safeMin;
        this.safeMax = safeMax;
      }
    
      /*
       * This is overridden to improve performance. Rough benchmarking shows that this almost doubles
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jan 18 20:55:09 UTC 2022
    - 6.3K bytes
    - Viewed (0)
Back to top