Home
last modified time | relevance | path

Searched refs:loadFactor (Results 1 – 25 of 27) sorted by relevance

12

/external/testng/src/test/java/test/morten/
DSampleTest.java8 private float loadFactor = 0.3f; field in SampleTest
24 public SampleTest(int capacity, float loadFactor) in SampleTest() argument
28 this.loadFactor=loadFactor; in SampleTest()
/external/emma/core/java12/com/vladium/util/
DIntSet.java49 public IntSet (int initialCapacity, final float loadFactor) in IntSet() argument
52 if ((loadFactor <= 0.0) || (loadFactor >= 1.0 + 1.0E-6)) in IntSet()
53 … throw new IllegalArgumentException ("loadFactor not in (0.0, 1.0] range: " + loadFactor); in IntSet()
57 m_loadFactor = loadFactor > 1.0 ? 1.0F : loadFactor; in IntSet()
58 m_sizeThreshold = (int) (initialCapacity * loadFactor); in IntSet()
DIntObjectMap.java51 public IntObjectMap (int initialCapacity, final float loadFactor) in IntObjectMap() argument
54 if ((loadFactor <= 0.0) || (loadFactor >= 1.0 + 1.0E-6)) in IntObjectMap()
55 … throw new IllegalArgumentException ("loadFactor not in (0.0, 1.0] range: " + loadFactor); in IntObjectMap()
59 m_loadFactor = loadFactor > 1.0 ? 1.0F : loadFactor; in IntObjectMap()
60 m_sizeThreshold = (int) (initialCapacity * loadFactor); in IntObjectMap()
DIntIntMap.java51 public IntIntMap (int initialCapacity, final float loadFactor) in IntIntMap() argument
54 if ((loadFactor <= 0.0) || (loadFactor >= 1.0 + 1.0E-6)) in IntIntMap()
55 … throw new IllegalArgumentException ("loadFactor not in (0.0, 1.0] range: " + loadFactor); in IntIntMap()
59 m_loadFactor = loadFactor > 1.0 ? 1.0F : loadFactor; in IntIntMap()
60 m_sizeThreshold = (int) (initialCapacity * loadFactor); in IntIntMap()
DObjectIntMap.java53 public ObjectIntMap (int initialCapacity, final float loadFactor) in ObjectIntMap() argument
56 if ((loadFactor <= 0.0) || (loadFactor >= 1.0 + 1.0E-6)) in ObjectIntMap()
57 … throw new IllegalArgumentException ("loadFactor not in (0.0, 1.0] range: " + loadFactor); in ObjectIntMap()
61 m_loadFactor = loadFactor > 1.0 ? 1.0F : loadFactor; in ObjectIntMap()
62 m_sizeThreshold = (int) (initialCapacity * loadFactor); in ObjectIntMap()
DSoftValueMap.java72 …public SoftValueMap (int initialCapacity, final float loadFactor, final int readClearCheckFrequenc… in SoftValueMap() argument
76 if ((loadFactor <= 0.0) || (loadFactor >= 1.0 + 1.0E-6)) in SoftValueMap()
77 … throw new IllegalArgumentException ("loadFactor not in (0.0, 1.0] range: " + loadFactor); in SoftValueMap()
87 m_loadFactor = loadFactor; in SoftValueMap()
88 m_sizeThreshold = (int) (initialCapacity * loadFactor); in SoftValueMap()
/external/guava/guava/src/com/google/common/collect/
DHashing.java56 static int closedTableSize(int expectedEntries, double loadFactor) { in closedTableSize() argument
62 if (expectedEntries > (int) (loadFactor * tableSize)) { in closedTableSize()
69 static boolean needsResizing(int size, int tableSize, double loadFactor) { in needsResizing() argument
70 return size > loadFactor * tableSize && tableSize < MAX_TABLE_SIZE; in needsResizing()
/external/libgdx/gdx/src/com/badlogic/gdx/utils/
DIntSet.java42 private float loadFactor; field in IntSet
63 public IntSet (int initialCapacity, float loadFactor) { in IntSet() argument
65 initialCapacity = MathUtils.nextPowerOfTwo((int)Math.ceil(initialCapacity / loadFactor)); in IntSet()
69 if (loadFactor <= 0) throw new IllegalArgumentException("loadFactor must be > 0: " + loadFactor); in IntSet()
70 this.loadFactor = loadFactor; in IntSet()
72 threshold = (int)(capacity * loadFactor); in IntSet()
83 this((int)Math.floor(set.capacity * set.loadFactor), set.loadFactor); in IntSet()
390 …sizeNeeded >= threshold) resize(MathUtils.nextPowerOfTwo((int)Math.ceil(sizeNeeded / loadFactor))); in ensureCapacity()
397 threshold = (int)(newSize * loadFactor); in resize()
DObjectSet.java41 private float loadFactor; field in ObjectSet
62 public ObjectSet (int initialCapacity, float loadFactor) { in ObjectSet() argument
64 initialCapacity = MathUtils.nextPowerOfTwo((int)Math.ceil(initialCapacity / loadFactor)); in ObjectSet()
68 if (loadFactor <= 0) throw new IllegalArgumentException("loadFactor must be > 0: " + loadFactor); in ObjectSet()
69 this.loadFactor = loadFactor; in ObjectSet()
71 threshold = (int)(capacity * loadFactor); in ObjectSet()
82 this((int)Math.floor(set.capacity * set.loadFactor), set.loadFactor); in ObjectSet()
370 …sizeNeeded >= threshold) resize(MathUtils.nextPowerOfTwo((int)Math.ceil(sizeNeeded / loadFactor))); in ensureCapacity()
377 threshold = (int)(newSize * loadFactor); in resize()
DIntFloatMap.java46 private float loadFactor; field in IntFloatMap
69 public IntFloatMap (int initialCapacity, float loadFactor) { in IntFloatMap() argument
71 initialCapacity = MathUtils.nextPowerOfTwo((int)Math.ceil(initialCapacity / loadFactor)); in IntFloatMap()
75 if (loadFactor <= 0) throw new IllegalArgumentException("loadFactor must be > 0: " + loadFactor); in IntFloatMap()
76 this.loadFactor = loadFactor; in IntFloatMap()
78 threshold = (int)(capacity * loadFactor); in IntFloatMap()
90 this((int)Math.floor(map.capacity * map.loadFactor), map.loadFactor); in IntFloatMap()
503 …sizeNeeded >= threshold) resize(MathUtils.nextPowerOfTwo((int)Math.ceil(sizeNeeded / loadFactor))); in ensureCapacity()
510 threshold = (int)(newSize * loadFactor); in resize()
DObjectFloatMap.java42 private float loadFactor; field in ObjectFloatMap
65 public ObjectFloatMap (int initialCapacity, float loadFactor) { in ObjectFloatMap() argument
67 initialCapacity = MathUtils.nextPowerOfTwo((int)Math.ceil(initialCapacity / loadFactor)); in ObjectFloatMap()
71 if (loadFactor <= 0) throw new IllegalArgumentException("loadFactor must be > 0: " + loadFactor); in ObjectFloatMap()
72 this.loadFactor = loadFactor; in ObjectFloatMap()
74 threshold = (int)(capacity * loadFactor); in ObjectFloatMap()
86 this((int)Math.floor(map.capacity * map.loadFactor), map.loadFactor); in ObjectFloatMap()
452 …sizeNeeded >= threshold) resize(MathUtils.nextPowerOfTwo((int)Math.ceil(sizeNeeded / loadFactor))); in ensureCapacity()
459 threshold = (int)(newSize * loadFactor); in resize()
DObjectIntMap.java42 private float loadFactor; field in ObjectIntMap
65 public ObjectIntMap (int initialCapacity, float loadFactor) { in ObjectIntMap() argument
67 initialCapacity = MathUtils.nextPowerOfTwo((int)Math.ceil(initialCapacity / loadFactor)); in ObjectIntMap()
71 if (loadFactor <= 0) throw new IllegalArgumentException("loadFactor must be > 0: " + loadFactor); in ObjectIntMap()
72 this.loadFactor = loadFactor; in ObjectIntMap()
74 threshold = (int)(capacity * loadFactor); in ObjectIntMap()
86 this((int)Math.floor(map.capacity * map.loadFactor), map.loadFactor); in ObjectIntMap()
453 …sizeNeeded >= threshold) resize(MathUtils.nextPowerOfTwo((int)Math.ceil(sizeNeeded / loadFactor))); in ensureCapacity()
460 threshold = (int)(newSize * loadFactor); in resize()
DIntIntMap.java44 private float loadFactor; field in IntIntMap
67 public IntIntMap (int initialCapacity, float loadFactor) { in IntIntMap() argument
69 initialCapacity = MathUtils.nextPowerOfTwo((int)Math.ceil(initialCapacity / loadFactor)); in IntIntMap()
73 if (loadFactor <= 0) throw new IllegalArgumentException("loadFactor must be > 0: " + loadFactor); in IntIntMap()
74 this.loadFactor = loadFactor; in IntIntMap()
76 threshold = (int)(capacity * loadFactor); in IntIntMap()
88 this((int)Math.floor(map.capacity * map.loadFactor), map.loadFactor); in IntIntMap()
489 …sizeNeeded >= threshold) resize(MathUtils.nextPowerOfTwo((int)Math.ceil(sizeNeeded / loadFactor))); in ensureCapacity()
496 threshold = (int)(newSize * loadFactor); in resize()
DIdentityMap.java43 private float loadFactor; field in IdentityMap
66 public IdentityMap (int initialCapacity, float loadFactor) { in IdentityMap() argument
68 initialCapacity = MathUtils.nextPowerOfTwo((int)Math.ceil(initialCapacity / loadFactor)); in IdentityMap()
72 if (loadFactor <= 0) throw new IllegalArgumentException("loadFactor must be > 0: " + loadFactor); in IdentityMap()
73 this.loadFactor = loadFactor; in IdentityMap()
75 threshold = (int)(capacity * loadFactor); in IdentityMap()
87 this((int)Math.floor(map.capacity * map.loadFactor), map.loadFactor); in IdentityMap()
464 …sizeNeeded >= threshold) resize(MathUtils.nextPowerOfTwo((int)Math.ceil(sizeNeeded / loadFactor))); in ensureCapacity()
471 threshold = (int)(newSize * loadFactor); in resize()
DIntMap.java45 private float loadFactor; field in IntMap
68 public IntMap (int initialCapacity, float loadFactor) { in IntMap() argument
70 initialCapacity = MathUtils.nextPowerOfTwo((int)Math.ceil(initialCapacity / loadFactor)); in IntMap()
74 if (loadFactor <= 0) throw new IllegalArgumentException("loadFactor must be > 0: " + loadFactor); in IntMap()
75 this.loadFactor = loadFactor; in IntMap()
77 threshold = (int)(capacity * loadFactor); in IntMap()
89 this((int)Math.floor(map.capacity * map.loadFactor), map.loadFactor); in IntMap()
510 …sizeNeeded >= threshold) resize(MathUtils.nextPowerOfTwo((int)Math.ceil(sizeNeeded / loadFactor))); in ensureCapacity()
517 threshold = (int)(newSize * loadFactor); in resize()
DObjectMap.java42 private float loadFactor; field in ObjectMap
65 public ObjectMap (int initialCapacity, float loadFactor) { in ObjectMap() argument
67 initialCapacity = MathUtils.nextPowerOfTwo((int)Math.ceil(initialCapacity / loadFactor)); in ObjectMap()
71 if (loadFactor <= 0) throw new IllegalArgumentException("loadFactor must be > 0: " + loadFactor); in ObjectMap()
72 this.loadFactor = loadFactor; in ObjectMap()
74 threshold = (int)(capacity * loadFactor); in ObjectMap()
86 this((int)Math.floor(map.capacity * map.loadFactor), map.loadFactor); in ObjectMap()
482 …sizeNeeded >= threshold) resize(MathUtils.nextPowerOfTwo((int)Math.ceil(sizeNeeded / loadFactor))); in ensureCapacity()
489 threshold = (int)(newSize * loadFactor); in resize()
DLongMap.java45 private float loadFactor; field in LongMap
68 public LongMap (int initialCapacity, float loadFactor) { in LongMap() argument
70 initialCapacity = MathUtils.nextPowerOfTwo((int)Math.ceil(initialCapacity / loadFactor)); in LongMap()
74 if (loadFactor <= 0) throw new IllegalArgumentException("loadFactor must be > 0: " + loadFactor); in LongMap()
75 this.loadFactor = loadFactor; in LongMap()
77 threshold = (int)(capacity * loadFactor); in LongMap()
89 this((int)Math.floor(map.capacity * map.loadFactor), map.loadFactor); in LongMap()
507 …sizeNeeded >= threshold) resize(MathUtils.nextPowerOfTwo((int)Math.ceil(sizeNeeded / loadFactor))); in ensureCapacity()
514 threshold = (int)(newSize * loadFactor); in resize()
DOrderedSet.java33 public OrderedSet (int initialCapacity, float loadFactor) { in OrderedSet() argument
34 super(initialCapacity, loadFactor); in OrderedSet()
/external/testng/src/test/java/test/factory/
DNestedFactoryTest.java29 public NestedFactoryTest(int capacity, float loadFactor) { in NestedFactoryTest() argument
32 this.m_loadFactor=loadFactor; in NestedFactoryTest()
DNestedStaticFactoryTest.java29 public NestedStaticFactoryTest(int capacity, float loadFactor) { in NestedStaticFactoryTest() argument
32 this.m_loadFactor=loadFactor; in NestedStaticFactoryTest()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/locale/
DLocaleObjectCache.java21 public LocaleObjectCache(int initialCapacity, float loadFactor, int concurrencyLevel) { in LocaleObjectCache() argument
22 … _map = new ConcurrentHashMap<K, CacheEntry<K, V>>(initialCapacity, loadFactor, concurrencyLevel); in LocaleObjectCache()
/external/icu/android_icu4j/src/main/java/android/icu/impl/locale/
DLocaleObjectCache.java25 public LocaleObjectCache(int initialCapacity, float loadFactor, int concurrencyLevel) { in LocaleObjectCache() argument
26 … _map = new ConcurrentHashMap<K, CacheEntry<K, V>>(initialCapacity, loadFactor, concurrencyLevel); in LocaleObjectCache()
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/impl/locale/
DLocaleObjectCache.java21 public LocaleObjectCache(int initialCapacity, float loadFactor, int concurrencyLevel) { in LocaleObjectCache() argument
22 … _map = new ConcurrentHashMap<K, CacheEntry<K, V>>(initialCapacity, loadFactor, concurrencyLevel); in LocaleObjectCache()
/external/javassist/src/main/javassist/scopedpool/
DSoftValueHashMap.java96 public SoftValueHashMap(int initialCapacity, float loadFactor) { in SoftValueHashMap() argument
97 hash = new HashMap(initialCapacity, loadFactor); in SoftValueHashMap()
/external/guava/guava-gwt/src-super/java/util/super/java/util/concurrent/
DConcurrentHashMap.java48 public ConcurrentHashMap(int initialCapacity, float loadFactor) { in ConcurrentHashMap() argument
49 this.backingMap = new HashMap<K, V>(initialCapacity, loadFactor); in ConcurrentHashMap()

12