Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 98 for expectedSizes (0.07 seconds)

  1. src/test/java/jcifs/internal/smb2/create/CreateContextRequestTest.java

            void testCombinedSizeCalculation() {
                CreateContextRequest[] contexts = new CreateContextRequest[5];
                int[] expectedSizes = { 16, 24, 32, 40, 48 };
    
                for (int i = 0; i < contexts.length; i++) {
                    contexts[i] = new MockCreateContextRequest("CTX" + i, expectedSizes[i]);
                }
    
                // Calculate total size
                int totalSize = 0;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 24.9K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/collect/ObjectCountLinkedHashMap.java

       * it <i>should</i> hold {@code expectedSize} elements without growth.
       *
       * @param expectedSize the number of elements you expect to add to the returned set
       * @return a new, empty {@code ObjectCountLinkedHashMap} with enough capacity to hold {@code
       *     expectedSize} elements without resizing
       * @throws IllegalArgumentException if {@code expectedSize} is negative
       */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 5.9K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/collect/CompactLinkedHashMap.java

        this(CompactHashing.DEFAULT_SIZE);
      }
    
      CompactLinkedHashMap(int expectedSize) {
        this(expectedSize, false);
      }
    
      CompactLinkedHashMap(int expectedSize, boolean accessOrder) {
        super(expectedSize);
        this.accessOrder = accessOrder;
      }
    
      @Override
      void init(int expectedSize) {
        super.init(expectedSize);
        this.firstEntry = ENDPOINT;
        this.lastEntry = ENDPOINT;
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Aug 06 14:59:07 GMT 2025
    - 8.4K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/collect/HashBasedTable.java

      private static final class Factory<C, V> implements Supplier<Map<C, V>>, Serializable {
        final int expectedSize;
    
        Factory(int expectedSize) {
          this.expectedSize = expectedSize;
        }
    
        @Override
        public Map<C, V> get() {
          return Maps.newLinkedHashMapWithExpectedSize(expectedSize);
        }
    
        @GwtIncompatible @J2ktIncompatible private static final long serialVersionUID = 0;
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 13:11:08 GMT 2026
    - 4.1K bytes
    - Click Count (0)
  5. guava/src/com/google/common/collect/HashBasedTable.java

      private static final class Factory<C, V> implements Supplier<Map<C, V>>, Serializable {
        final int expectedSize;
    
        Factory(int expectedSize) {
          this.expectedSize = expectedSize;
        }
    
        @Override
        public Map<C, V> get() {
          return Maps.newLinkedHashMapWithExpectedSize(expectedSize);
        }
    
        @GwtIncompatible @J2ktIncompatible private static final long serialVersionUID = 0;
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 13:11:08 GMT 2026
    - 4.1K bytes
    - Click Count (0)
  6. src/test/java/jcifs/internal/SmbNegotiationResponseTest.java

        void testGetSendBufferSizeStandard() {
            // Arrange
            int expectedSize = 65536;
            when(negotiationResponse.getSendBufferSize()).thenReturn(expectedSize);
    
            // Act
            int size = negotiationResponse.getSendBufferSize();
    
            // Assert
            assertEquals(expectedSize, size);
            verify(negotiationResponse).getSendBufferSize();
        }
    
        @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 20.6K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/io/CharSinkTester.java

      private final ImmutableList<String> lines;
      private final ImmutableList<String> expectedLines;
    
      private CharSink sink;
    
      public CharSinkTester(
          CharSinkFactory factory, String string, String suiteName, String caseDesc, Method method) {
        super(factory, string, suiteName, caseDesc, method);
        this.lines = getLines(string);
        this.expectedLines = getLines(expected);
      }
    
      @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 4.5K bytes
    - Click Count (0)
  8. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/Platform.java

          Map<K, V> newHashMapWithExpectedSize(int expectedSize) {
        return Maps.newHashMapWithExpectedSize(expectedSize);
      }
    
      static <K extends @Nullable Object, V extends @Nullable Object>
          Map<K, V> newLinkedHashMapWithExpectedSize(int expectedSize) {
        return Maps.newLinkedHashMapWithExpectedSize(expectedSize);
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Jan 23 17:16:53 GMT 2026
    - 5.3K bytes
    - Click Count (0)
  9. src/test/java/jcifs/internal/smb2/create/Smb2CreateRequestTest.java

            request = new Smb2CreateRequest(mockConfig, "test.txt");
    
            int expectedSize = Smb2Constants.SMB2_HEADER_LENGTH + 56;
            int nameLen = 2 * "test.txt".length();
            expectedSize += ((nameLen + 7) / 8) * 8; // size8(nameLen)
            expectedSize = ((expectedSize + 7) / 8) * 8; // size8(size)
    
            assertEquals(expectedSize, request.size());
        }
    
        @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 18.6K bytes
    - Click Count (0)
  10. android/guava-tests/test/com/google/common/io/CharSinkTester.java

      private final ImmutableList<String> lines;
      private final ImmutableList<String> expectedLines;
    
      private CharSink sink;
    
      public CharSinkTester(
          CharSinkFactory factory, String string, String suiteName, String caseDesc, Method method) {
        super(factory, string, suiteName, caseDesc, method);
        this.lines = getLines(string);
        this.expectedLines = getLines(expected);
      }
    
      @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 4.5K bytes
    - Click Count (0)
Back to Top