Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 84 for MIN_VALUE (0.29 sec)

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

      private static final short[] EMPTY = {};
      private static final short[] ARRAY1 = {(short) 1};
      private static final short[] ARRAY234 = {(short) 2, (short) 3, (short) 4};
    
      private static final short LEAST = Short.MIN_VALUE;
      private static final short GREATEST = Short.MAX_VALUE;
    
      private static final short[] VALUES = {LEAST, (short) -1, (short) 0, (short) 1, GREATEST};
    
      public void testHashCode() {
        for (short value : VALUES) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 29 15:43:06 UTC 2024
    - 26.6K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/primitives/ImmutableIntArrayTest.java

      public static final class ImmutableIntArrayHeadSubListAsListGenerator
          extends TestIntegerListGenerator {
        @Override
        protected List<Integer> create(Integer[] elements) {
          Integer[] suffix = {Integer.MIN_VALUE, Integer.MAX_VALUE};
          Integer[] all = concat(elements, suffix);
          return makeArray(all).subArray(0, elements.length).asList();
        }
      }
    
      @J2ktIncompatible
      @GwtIncompatible // used only from suite
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Jun 01 09:32:35 UTC 2023
    - 18.9K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/primitives/ImmutableLongArrayTest.java

      public static final class ImmutableLongArrayHeadSubListAsListGenerator
          extends TestLongListGenerator {
        @Override
        protected List<Long> create(Long[] elements) {
          Long[] suffix = {Long.MIN_VALUE, Long.MAX_VALUE};
          Long[] all = concat(elements, suffix);
          return makeArray(all).subArray(0, elements.length).asList();
        }
      }
    
      @J2ktIncompatible
      @GwtIncompatible // used only from suite
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Jun 01 09:32:35 UTC 2023
    - 20.2K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java

      public static final class ImmutableDoubleArrayHeadSubListAsListGenerator
          extends TestDoubleListGenerator {
        @Override
        protected List<Double> create(Double[] elements) {
          Double[] suffix = {Double.MIN_VALUE, Double.MAX_VALUE};
          Double[] all = concat(elements, suffix);
          return makeArray(all).subArray(0, elements.length).asList();
        }
      }
    
      @J2ktIncompatible
      @GwtIncompatible // used only from suite
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Jun 01 09:32:35 UTC 2023
    - 21.3K bytes
    - Viewed (0)
  5. maven-embedder/src/main/java/org/fusesource/jansi/Ansi.java

        }
    
        public Ansi scrollUp(final int rows) {
            if (rows == Integer.MIN_VALUE) {
                return scrollDown(Integer.MAX_VALUE);
            }
            return rows > 0 ? appendEscapeSequence('S', rows) : rows < 0 ? scrollDown(-rows) : this;
        }
    
        public Ansi scrollDown(final int rows) {
            if (rows == Integer.MIN_VALUE) {
                return scrollUp(Integer.MAX_VALUE);
            }
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon May 13 09:53:45 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  6. okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerTest.kt

      }
    
      @Test fun `min long`() {
        val bytes = "02088000000000000000".decodeHex()
        assertThat(Adapters.INTEGER_AS_LONG.fromDer(bytes)).isEqualTo(Long.MIN_VALUE)
        assertThat(Adapters.INTEGER_AS_LONG.toDer(Long.MIN_VALUE)).isEqualTo(bytes)
      }
    
      @Test fun `bigger than max long`() {
        val bytes = "0209008000000000000001".decodeHex()
        val bigInteger = BigInteger("9223372036854775809")
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 31.7K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/primitives/Longs.java

          return null;
        }
        long accum = -digit;
    
        long cap = Long.MIN_VALUE / radix;
    
        while (index < string.length()) {
          digit = AsciiDigits.digit(string.charAt(index++));
          if (digit < 0 || digit >= radix || accum < cap) {
            return null;
          }
          accum *= radix;
          if (accum < Long.MIN_VALUE + digit) {
            return null;
          }
          accum -= digit;
        }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  8. guava/src/com/google/common/primitives/Longs.java

          return null;
        }
        long accum = -digit;
    
        long cap = Long.MIN_VALUE / radix;
    
        while (index < string.length()) {
          digit = AsciiDigits.digit(string.charAt(index++));
          if (digit < 0 || digit >= radix || accum < cap) {
            return null;
          }
          accum *= radix;
          if (accum < Long.MIN_VALUE + digit) {
            return null;
          }
          accum -= digit;
        }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 28.8K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/internal/http2/Http2Test.kt

        frame.writeByte(Http2.TYPE_SETTINGS)
        frame.writeByte(FLAG_NONE)
        frame.writeInt(0) // Settings are always on the connection stream 0.
        frame.writeShort(4) // SETTINGS_INITIAL_WINDOW_SIZE
        frame.writeInt(Int.MIN_VALUE)
        assertFailsWith<IOException> {
          reader.nextFrame(requireSettings = false, BaseTestHandler())
        }.also { expected ->
          assertThat(expected.message).isEqualTo(
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/OrderingTest.java

                Lists.newArrayList(),
                null)
            .inOrder();
      }
    
      public void testNatural() {
        Ordering<Integer> comparator = Ordering.natural();
        Helpers.testComparator(comparator, Integer.MIN_VALUE, -1, 0, 1, Integer.MAX_VALUE);
        try {
          comparator.compare(1, null);
          fail();
        } catch (NullPointerException expected) {
        }
        try {
          comparator.compare(null, 2);
          fail();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Mar 07 18:34:03 UTC 2024
    - 42.5K bytes
    - Viewed (0)
Back to top