Search Options

Results per page
Sort
Preferred Languages
Advance

Results 201 - 210 of 296 for maxValue (0.23 sec)

  1. android/guava/src/com/google/common/base/Joiner.java

      }
    
      // cloned from ImmutableCollection
      private static int expandedCapacity(int oldCapacity, int minCapacity) {
        if (minCapacity < 0) {
          throw new IllegalArgumentException("cannot store more than Integer.MAX_VALUE elements");
        } else if (minCapacity <= oldCapacity) {
          return oldCapacity;
        }
        // careful of overflow!
        int newCapacity = oldCapacity + (oldCapacity >> 1) + 1;
        if (newCapacity < minCapacity) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 19.3K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/ImmutableCollection.java

        static final int DEFAULT_INITIAL_CAPACITY = 4;
    
        static int expandedCapacity(int oldCapacity, int minCapacity) {
          if (minCapacity < 0) {
            throw new IllegalArgumentException("cannot store more than Integer.MAX_VALUE elements");
          } else if (minCapacity <= oldCapacity) {
            return oldCapacity;
          }
          // careful of overflow!
          int newCapacity = oldCapacity + (oldCapacity >> 1) + 1;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 18.7K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/io/Smb2FlushResponseTest.java

            @Test
            @DisplayName("Should handle maximum buffer index")
            void testMaxBufferIndex() throws SMBProtocolDecodingException {
                // Given
                byte[] buffer = new byte[Integer.MAX_VALUE / 1000]; // Use reasonable size
                int bufferIndex = buffer.length - 4;
                SMBUtil.writeInt2(4, buffer, bufferIndex);
    
                // When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ImmutableList.java

      // whatever warnings might come along with it. :(
    
      /**
       * Returns an immutable list containing the given elements, in order.
       *
       * <p>The array {@code others} must not be longer than {@code Integer.MAX_VALUE - 12}.
       *
       * @throws NullPointerException if any element is null
       * @since 3.0 (source-compatible since 2.0)
       */
      @SafeVarargs // For Eclipse. For internal javac we have disabled this pointless type of warning.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 27.5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/math/LinearTransformationTest.java

        // to loss of precision with this value of the slope.
      }
    
      public void testMappingWithSlope_maximalSlope() {
        double x1 = 1.2;
        double y1 = 3.4;
        double slope = Double.MAX_VALUE;
        LinearTransformation transformation = LinearTransformation.mapping(x1, y1).withSlope(slope);
        assertThat(transformation.isVertical()).isFalse();
        assertThat(transformation.isHorizontal()).isFalse();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/io/LineBufferTest.java

        bufferHelper("mixed\nline\rendings\r\n", "mixed\n", "line\r", "endings\r\n");
      }
    
      private static final ImmutableSet<Integer> CHUNK_SIZES =
          ImmutableSet.of(1, 2, 3, Integer.MAX_VALUE);
    
      private static void bufferHelper(String input, String... expect) throws IOException {
    
        List<String> expectProcess = Arrays.asList(expect);
        List<String> expectRead =
            Lists.transform(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/io/FileBackedOutputStreamTest.java

        out.reset();
      }
    
      public void testReset() throws Exception {
        byte[] data = newPreFilledByteArray(100);
        FileBackedOutputStream out = new FileBackedOutputStream(Integer.MAX_VALUE);
        ByteSource source = out.asByteSource();
    
        out.write(data);
        assertTrue(Arrays.equals(data, source.read()));
    
        out.reset();
        assertTrue(Arrays.equals(new byte[0], source.read()));
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/io/LineBufferTest.java

        bufferHelper("mixed\nline\rendings\r\n", "mixed\n", "line\r", "endings\r\n");
      }
    
      private static final ImmutableSet<Integer> CHUNK_SIZES =
          ImmutableSet.of(1, 2, 3, Integer.MAX_VALUE);
    
      private static void bufferHelper(String input, String... expect) throws IOException {
    
        List<String> expectProcess = Arrays.asList(expect);
        List<String> expectRead =
            Lists.transform(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/math/LinearTransformationTest.java

        // to loss of precision with this value of the slope.
      }
    
      public void testMappingWithSlope_maximalSlope() {
        double x1 = 1.2;
        double y1 = 3.4;
        double slope = Double.MAX_VALUE;
        LinearTransformation transformation = LinearTransformation.mapping(x1, y1).withSlope(slope);
        assertThat(transformation.isVertical()).isFalse();
        assertThat(transformation.isHorizontal()).isFalse();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryPathInformationTest.java

            int actualInfoLevel = SMBUtil.readInt2(buffer, 0);
            assertEquals(0x0101, actualInfoLevel);
        }
    
        @ParameterizedTest
        @ValueSource(ints = { -1, 0, 100, 255, Integer.MAX_VALUE })
        void testMapInformationLevelWithUnsupportedLevels(int level) {
            if (level == FileInformation.FILE_BASIC_INFO || level == FileInformation.FILE_STANDARD_INFO
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.4K bytes
    - Viewed (0)
Back to top