Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for loadFactory (0.18 sec)

  1. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/catalog/DefaultDependenciesAccessors.java

                throw new InvalidUserDataException(formatter.toString());
            }
            return errors.isEmpty();
        }
    
        @Nullable
        private static <T> Class<? extends T> loadFactory(ClassLoaderScope classLoaderScope, String className) {
            Class<? extends T> clazz;
            try {
                clazz = Cast.uncheckedCast(classLoaderScope.getExportClassLoader().loadClass(className));
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 26.4K bytes
    - Viewed (0)
  2. 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 = Math.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: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Aug 05 00:40:25 UTC 2021
    - 2.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ObjectCountLinkedHashMap.java

      ObjectCountLinkedHashMap(int expectedSize, float loadFactor) {
        super(expectedSize, loadFactor);
      }
    
      ObjectCountLinkedHashMap(ObjectCountHashMap<K> map) {
        init(map.size(), DEFAULT_LOAD_FACTOR);
        for (int i = map.firstIndex(); i != -1; i = map.nextIndex(i)) {
          put(map.getKey(i), map.getValue(i));
        }
      }
    
      @Override
      void init(int expectedSize, float loadFactor) {
        super.init(expectedSize, loadFactor);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 01 22:07:10 UTC 2021
    - 5.9K bytes
    - Viewed (0)
  4. 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 = Math.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: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Aug 05 00:40:25 UTC 2021
    - 2.5K bytes
    - Viewed (0)
  5. 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: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ObjectCountHashMap.java

      }
    
      ObjectCountHashMap(int expectedSize, float loadFactor) {
        init(expectedSize, loadFactor);
      }
    
      void init(int expectedSize, float loadFactor) {
        Preconditions.checkArgument(expectedSize >= 0, "Initial capacity must be non-negative");
        Preconditions.checkArgument(loadFactor > 0, "Illegal load factor");
        int buckets = Hashing.closedTableSize(expectedSize, loadFactor);
        this.table = newTable(buckets);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 01 22:07:10 UTC 2021
    - 15K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/collection/CollectionsUtil.java

         * @param initialCapacity
         *            初期容量
         * @param loadFactor
         *            サイズ変更の制御に使用される負荷係数のしきい値
         * @return {@link HashMap}の新しいインスタンス
         * @see HashMap#HashMap(int, float)
         */
        public static <K, V> HashMap<K, V> newHashMap(final int initialCapacity, final float loadFactor) {
            return new HashMap<>(initialCapacity, loadFactor);
        }
    
        /**
         * {@link HashMap}の新しいインスタンスを作成して返します。
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 53.9K bytes
    - Viewed (0)
  8. 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: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 27 19:19:19 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  9. src/runtime/map.go

    // they are iterating through has been moved ("evacuated")
    // to the new table.
    
    // Picking loadFactor: too large and we have lots of overflow
    // buckets, too small and we waste a lot of space. I wrote
    // a simple program to check some stats for different loads:
    // (64-bit, 8 byte keys and elems)
    //  loadFactor    %overflow  bytes/entry     hitprobe    missprobe
    //        4.00         2.13        20.77         3.00         4.00
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 57.6K bytes
    - Viewed (0)
  10. src/runtime/map_test.go

    	// on the stack. Escaping maps start with a non-nil bucket pointer if
    	// hint size is above bucketCnt and thereby have more than one bucket.
    	// These tests depend on bucketCnt and loadFactor* in map.go.
    	t.Run("mapliteral", func(t *testing.T) {
    		for _, tt := range mapBucketTests {
    			localMap := map[int]int{}
    			if runtime.MapBucketsPointerIsNil(localMap) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 33.5K bytes
    - Viewed (0)
Back to top