Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 132 for MIN_VALUE (0.42 sec)

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

        }
      }
    
      public static final class FloatsAsListHeadSubListGenerator extends TestFloatListGenerator {
        @Override
        protected List<Float> create(Float[] elements) {
          Float[] suffix = {Float.MIN_VALUE, Float.MAX_VALUE};
          Float[] all = concat(elements, suffix);
          return asList(all).subList(0, elements.length);
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Jun 01 09:32:35 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/primitives/FloatArrayAsListTest.java

        }
      }
    
      public static final class FloatsAsListHeadSubListGenerator extends TestFloatListGenerator {
        @Override
        protected List<Float> create(Float[] elements) {
          Float[] suffix = {Float.MIN_VALUE, Float.MAX_VALUE};
          Float[] all = concat(elements, suffix);
          return asList(all).subList(0, elements.length);
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Jun 01 09:32:35 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/primitives/IntArrayAsListTest.java

        }
      }
    
      public static final class IntsAsListHeadSubListGenerator extends TestIntegerListGenerator {
        @Override
        protected List<Integer> create(Integer[] elements) {
          Integer[] suffix = {Integer.MIN_VALUE, Integer.MAX_VALUE};
          Integer[] all = concat(elements, suffix);
          return asList(all).subList(0, elements.length);
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Jun 01 09:32:35 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  4. guava/src/com/google/common/math/LongMath.java

      }
    
      /**
       * Returns {@code true} if {@code x} represents a power of two.
       *
       * <p>This differs from {@code Long.bitCount(x) == 1}, because {@code
       * Long.bitCount(Long.MIN_VALUE) == 1}, but {@link Long#MIN_VALUE} is not a power of two.
       */
      @SuppressWarnings("ShortCircuitBoolean")
      public static boolean isPowerOfTwo(long x) {
        return x > 0 & (x & (x - 1)) == 0;
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 44.6K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/primitives/UnsignedIntsTest.java

          assertThat(UnsignedInts.toLong(UnsignedInts.checkedCast(value))).isEqualTo(value);
        }
        assertCastFails(1L << 32);
        assertCastFails(-1L);
        assertCastFails(Long.MAX_VALUE);
        assertCastFails(Long.MIN_VALUE);
      }
    
      private static void assertCastFails(long value) {
        try {
          UnsignedInts.checkedCast(value);
          fail("Cast to int should have failed: " + value);
        } catch (IllegalArgumentException ex) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 06 16:10:08 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/primitives/UnsignedIntegerTest.java

        for (int i = -3; i <= 3; i++) {
          testIntsBuilder
              .add(i)
              .add(force32(Integer.MIN_VALUE + i))
              .add(force32(Integer.MAX_VALUE + i));
          testLongsBuilder
              .add((long) i)
              .add((long) Integer.MIN_VALUE + i)
              .add((long) Integer.MAX_VALUE + i)
              .add((1L << 32) + i);
        }
        TEST_INTS = testIntsBuilder.build();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Jun 01 09:32:35 UTC 2023
    - 9.6K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/math/LongMath.java

      }
    
      /**
       * Returns {@code true} if {@code x} represents a power of two.
       *
       * <p>This differs from {@code Long.bitCount(x) == 1}, because {@code
       * Long.bitCount(Long.MIN_VALUE) == 1}, but {@link Long#MIN_VALUE} is not a power of two.
       */
      @SuppressWarnings("ShortCircuitBoolean")
      public static boolean isPowerOfTwo(long x) {
        return x > 0 & (x & (x - 1)) == 0;
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 44.6K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/primitives/UnsignedIntegerTest.java

        for (int i = -3; i <= 3; i++) {
          testIntsBuilder
              .add(i)
              .add(force32(Integer.MIN_VALUE + i))
              .add(force32(Integer.MAX_VALUE + i));
          testLongsBuilder
              .add((long) i)
              .add((long) Integer.MIN_VALUE + i)
              .add((long) Integer.MAX_VALUE + i)
              .add((1L << 32) + i);
        }
        TEST_INTS = testIntsBuilder.build();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Jun 01 09:32:35 UTC 2023
    - 9.6K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/CookieTest.kt

          .isEqualTo(Long.MIN_VALUE)
        assertThat(parseCookie(50000L, url, "a=b; Max-Age=0")!!.expiresAt)
          .isEqualTo(Long.MIN_VALUE)
        assertThat(parseCookie(50000L, url, "a=b; Max-Age=-9223372036854775808")!!.expiresAt)
          .isEqualTo(Long.MIN_VALUE)
        assertThat(parseCookie(50000L, url, "a=b; Max-Age=-9223372036854775809")!!.expiresAt)
          .isEqualTo(Long.MIN_VALUE)
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 24.3K bytes
    - Viewed (0)
  10. platforms/core-runtime/process-services/src/test/groovy/org/gradle/process/internal/health/memory/MemoryAmountTest.groovy

        }
    
        def "invalid bytes #bytes"() {
            when:
            MemoryAmount.of(bytes)
    
            then:
            thrown IllegalArgumentException
    
            where:
            bytes << [0L, -1L, Long.MIN_VALUE]
        }
    
        def "string notation #notation"() {
            given:
            def amount = MemoryAmount.of(notation)
    
            expect:
            amount.bytes == bytes
            amount.toString() == notation
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:10:02 UTC 2023
    - 2.7K bytes
    - Viewed (0)
Back to top