Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for _loadFactor (0.06 sec)

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

      static int closedTableSize(int expectedEntries, double loadFactor) {
        // Get the recommended table size.
        // Round down to the nearest power of 2.
        expectedEntries = max(expectedEntries, 2);
        int tableSize = Integer.highestOneBit(expectedEntries);
        // Check to make sure that we will not exceed the maximum load factor.
        if (expectedEntries > (int) (loadFactor * tableSize)) {
          tableSize <<= 1;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Hashing.java

      static int closedTableSize(int expectedEntries, double loadFactor) {
        // Get the recommended table size.
        // Round down to the nearest power of 2.
        expectedEntries = max(expectedEntries, 2);
        int tableSize = Integer.highestOneBit(expectedEntries);
        // Check to make sure that we will not exceed the maximum load factor.
        if (expectedEntries > (int) (loadFactor * tableSize)) {
          tableSize <<= 1;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/collection/LruHashMap.java

         *
         * @param limitSize
         *            エントリ数の上限
         * @param initialCapacity
         *            初期容量
         * @param loadFactor
         *            負荷係数
         */
        public LruHashMap(final int limitSize, final int initialCapacity, final float loadFactor) {
            super(initialCapacity, loadFactor, true);
            this.limitSize = limitSize;
        }
    
        /**
         * エントリ数の上限を返します。
         *
         * @return エントリ数の上限
         */
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  4. guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java

        public CapacityEnforcingLinkedHashMap(
            int initialCapacity,
            float loadFactor,
            boolean accessOrder,
            long maximumSize,
            StatsCounter statsCounter,
            @Nullable RemovalListener<? super K, ? super V> removalListener) {
          super(initialCapacity, loadFactor, accessOrder);
          this.maximumSize = maximumSize;
          this.statsCounter = statsCounter;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 27 19:19:19 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Maps.java

          // ends up being used to compute a "threshold" size, beyond which the internal table
          // will be resized. That threshold is ceilingPowerOfTwo(capacity*loadFactor), where
          // loadFactor is 0.75 by default. So with the calculation here we ensure that the
          // threshold is equal to ceilingPowerOfTwo(expectedSize). There is a separate code
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 161.6K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/Maps.java

          // ends up being used to compute a "threshold" size, beyond which the internal table
          // will be resized. That threshold is ceilingPowerOfTwo(capacity*loadFactor), where
          // loadFactor is 0.75 by default. So with the calculation here we ensure that the
          // threshold is equal to ceilingPowerOfTwo(expectedSize). There is a separate code
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 167.4K bytes
    - Viewed (0)
Back to top