Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 81 for expectedSize (0.06 sec)

  1. guava/src/com/google/common/collect/ImmutableMultimap.java

            builderMap = result;
          }
          return result;
        }
    
        ImmutableCollection.Builder<V> newValueCollectionBuilderWithExpectedSize(int expectedSize) {
          return ImmutableList.builderWithExpectedSize(expectedSize);
        }
    
        /**
         * Provides a hint for how many values will be associated with each key newly added to the
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Dec 09 15:58:48 UTC 2025
    - 28.1K bytes
    - Viewed (0)
  2. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedSet.java

        public Builder(Comparator<? super E> comparator) {
          this.comparator = checkNotNull(comparator);
        }
    
        Builder(Comparator<? super E> comparator, int expectedSize) {
          super(expectedSize);
          this.comparator = checkNotNull(comparator);
        }
    
        @CanIgnoreReturnValue
        @Override
        public Builder<E> add(E element) {
          super.add(element);
          return this;
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 18:32:41 UTC 2025
    - 15.5K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/MapsTest.java

              Integer.MAX_VALUE - 1,
              Integer.MAX_VALUE
            };
        for (int expectedSize : largeExpectedSizes) {
          int capacity = Maps.capacity(expectedSize);
          assertTrue(
              "capacity (" + capacity + ") must be >= expectedSize (" + expectedSize + ")",
              capacity >= expectedSize);
        }
      }
    
      public void testLinkedHashMap() {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 22:56:33 UTC 2025
    - 65K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/nego/PreauthIntegrityNegotiateContextTest.java

            void testSizeWithVariousCombinations(int algoCount, int saltSize, int expectedSize) {
                int[] hashAlgos = algoCount > 0 ? new int[algoCount] : null;
                byte[] salt = saltSize > 0 ? new byte[saltSize] : null;
                PreauthIntegrityNegotiateContext context = new PreauthIntegrityNegotiateContext(mockConfig, hashAlgos, salt);
    
                assertEquals(expectedSize, context.size());
            }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 34K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ImmutableMultimap.java

            builderMap = result;
          }
          return result;
        }
    
        ImmutableCollection.Builder<V> newValueCollectionBuilderWithExpectedSize(int expectedSize) {
          return ImmutableList.builderWithExpectedSize(expectedSize);
        }
    
        /**
         * Provides a hint for how many values will be associated with each key newly added to the
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Dec 09 15:58:48 UTC 2025
    - 27.1K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

       */
      @DoNotCall("Use naturalOrder (which does not accept an expected size)")
      @Deprecated
      public static <K, V> ImmutableSortedMap.Builder<K, V> builderWithExpectedSize(int expectedSize) {
        throw new UnsupportedOperationException();
      }
    
      /**
       * Not supported. <b>You are attempting to create a map that may contain a non-{@code Comparable}
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 21:07:18 UTC 2025
    - 52.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkTest.java

                assertEquals(400L, SMBUtil.readInt8(buffer, EXPECTED_SIZE));
                assertEquals(500L, SMBUtil.readInt8(buffer, EXPECTED_SIZE + 8));
                assertEquals(600, SMBUtil.readInt4(buffer, EXPECTED_SIZE + 16));
    
                // Verify third chunk
                assertEquals(700L, SMBUtil.readInt8(buffer, EXPECTED_SIZE * 2));
                assertEquals(800L, SMBUtil.readInt8(buffer, EXPECTED_SIZE * 2 + 8));
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/fscc/FileBasicInfoTest.java

            // This is the expected behavior for Windows FILETIME
            long expectedTime = -11644473600000L; // Jan 1, 1601 in Unix time
            assertEquals(expectedTime, decoded.getCreateTime());
            assertEquals(expectedTime, decoded.getLastAccessTime());
            assertEquals(expectedTime, decoded.getLastWriteTime());
            assertEquals(0, decoded.getAttributes());
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/SmbFileTest.java

            }
    
            @Test
            void testLastModified() throws SmbException {
                // Arrange
                long expectedTime = System.currentTimeMillis();
                doReturn(expectedTime).when(smbFile).lastModified();
    
                // Act & Assert
                assertEquals(expectedTime, smbFile.lastModified());
            }
    
            @Test
            void testSetLastModified() throws SmbException {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/util/SMBUtilTest.java

                // Account for precision loss in conversion
                long expectedTime = ((time + SmbConstants.MILLISECONDS_BETWEEN_1970_AND_1601) * 10000L) / 10000L
                        - SmbConstants.MILLISECONDS_BETWEEN_1970_AND_1601;
                assertEquals(expectedTime, readTime);
            }
    
            // Test zero time separately - it's handled specially
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.1K bytes
    - Viewed (0)
Back to top