Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 69 for expectedSizes (0.28 sec)

  1. android/guava/src/com/google/common/collect/HashBiMap.java

      private HashBiMap(int expectedSize) {
        init(expectedSize);
      }
    
      @SuppressWarnings("unchecked")
      void init(int expectedSize) {
        CollectPreconditions.checkNonnegative(expectedSize, "expectedSize");
        int tableSize = Hashing.closedTableSize(expectedSize, 1.0);
        size = 0;
    
        keys = (K[]) new Object[expectedSize];
        values = (V[]) new Object[expectedSize];
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/dfs/DfsReferralRequestBufferTest.java

                buffer = new DfsReferralRequestBuffer(path, maxReferralLevel);
    
                assertNotNull(buffer);
                // Verify through encode since there are no getters
                int expectedSize = 4 + 2 * path.length();
                assertEquals(expectedSize, buffer.size());
            }
    
            @Test
            @DisplayName("Should create buffer with empty path")
            void testConstructorWithEmptyPath() {
                String path = "";
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapSizeTester.java

      public void testSize() {
        int expectedSize = getNumElements();
        Multimap<K, V> multimap = multimap();
        assertEquals(expectedSize, multimap.size());
    
        int size = 0;
        for (Entry<K, V> entry : multimap.entries()) {
          assertTrue(multimap.containsEntry(entry.getKey(), entry.getValue()));
          size++;
        }
        assertEquals(expectedSize, size);
    
        int size2 = 0;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  4. 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
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/fscc/FileRenameInformation2Test.java

            FileRenameInformation2 info = new FileRenameInformation2(longFileName, false);
    
            int expectedSize = 20 + 2 * longFileName.length();
            assertEquals(expectedSize, info.size());
    
            byte[] buffer = new byte[expectedSize + 100];
            int bytesWritten = info.encode(buffer, 0);
    
            assertEquals(expectedSize, bytesWritten);
        }
    
        @Test
        @DisplayName("Test decode with empty filename")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/lock/Smb2LockRequestTest.java

                Smb2LockRequest req = new Smb2LockRequest(mockConfig, testFileId, singleLock);
    
                int expectedSize = Smb2Constants.SMB2_HEADER_LENGTH + 24 + 24; // header + structure + 1 lock
                expectedSize = ((expectedSize + 7) / 8) * 8; // 8-byte alignment
                assertEquals(expectedSize, req.size());
            }
    
            @Test
            @DisplayName("Should calculate size correctly with multiple locks")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 25.3K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Platform.java

          Map<K, V> newHashMapWithExpectedSize(int expectedSize) {
        return CompactHashMap.createWithExpectedSize(expectedSize);
      }
    
      /**
       * Returns the platform preferred implementation of an insertion ordered map based on a hash
       * table.
       */
      static <K extends @Nullable Object, V extends @Nullable Object>
          Map<K, V> newLinkedHashMapWithExpectedSize(int expectedSize) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/CompactLinkedHashSet.java

      CompactLinkedHashSet(int expectedSize) {
        super(expectedSize);
      }
    
      @Override
      void init(int expectedSize) {
        super.init(expectedSize);
        this.firstEntry = ENDPOINT;
        this.lastEntry = ENDPOINT;
      }
    
      @Override
      int allocArrays() {
        int expectedSize = super.allocArrays();
        this.predecessor = new int[expectedSize];
        this.successor = new int[expectedSize];
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 14:59:07 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/Platform.java

          Map<K, V> newHashMapWithExpectedSize(int expectedSize) {
        return Maps.newHashMapWithExpectedSize(expectedSize);
      }
    
      /**
       * Returns the platform preferred implementation of an insertion ordered map based on a hash
       * table.
       */
      static <K extends @Nullable Object, V extends @Nullable Object>
          Map<K, V> newLinkedHashMapWithExpectedSize(int expectedSize) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/CompactHashSetTest.java

          assertThat(set.needsAllocArrays()).isTrue();
          assertThat(set.elements).isNull();
    
          set.add(1);
          assertThat(set.needsAllocArrays()).isFalse();
          int expectedSize = max(1, i);
          assertThat(set.elements).hasLength(expectedSize);
        }
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Jan 25 16:19:30 UTC 2025
    - 4.1K bytes
    - Viewed (0)
Back to top