/libcore/luni/src/main/java/java/util/ |
LinkedHashSet.java | 64 * @param loadFactor 67 public LinkedHashSet(int capacity, float loadFactor) { 68 super(new LinkedHashMap<E, HashSet<E>>(capacity, loadFactor)); 88 HashMap<E, HashSet<E>> createBackingMap(int capacity, float loadFactor) { 89 return new LinkedHashMap<E, HashSet<E>>(capacity, loadFactor);
|
HashSet.java | 59 * @param loadFactor 62 public HashSet(int capacity, float loadFactor) { 63 this(new HashMap<E, HashSet<E>>(capacity, loadFactor)); 201 float loadFactor = stream.readFloat(); 202 backingMap = createBackingMap(length, loadFactor); 210 HashMap<E, HashSet<E>> createBackingMap(int capacity, float loadFactor) { 211 return new HashMap<E, HashSet<E>>(capacity, loadFactor);
|
WeakHashMap.java | 44 private final int loadFactor; 206 loadFactor = 7500; // Default load factor of 0.75 217 * @param loadFactor 223 public WeakHashMap(int capacity, float loadFactor) { 227 if (loadFactor <= 0) { 228 throw new IllegalArgumentException("loadFactor <= 0: " + loadFactor); 232 this.loadFactor = (int) (loadFactor * 10000); 268 threshold = (int) ((long) elementData.length * loadFactor / 10000) [all...] |
LinkedHashMap.java | 90 * @param loadFactor 96 public LinkedHashMap(int initialCapacity, float loadFactor) { 97 this(initialCapacity, loadFactor, false); 106 * @param loadFactor 118 int initialCapacity, float loadFactor, boolean accessOrder) { 119 super(initialCapacity, loadFactor);
|
IdentityHashMap.java | 70 private static final int loadFactor = 7500; 279 int arraySize = (int) (((long) threshold * 10000) / loadFactor) * 2; 526 threshold = (int) ((long) (elementData.length / 2) * loadFactor / 10000);
|
HashMap.java | 167 * @param loadFactor 173 public HashMap(int capacity, float loadFactor) { 176 if (loadFactor <= 0 || Float.isNaN(loadFactor)) { 177 throw new IllegalArgumentException("Load factor: " + loadFactor); 181 * Note that this implementation ignores loadFactor; it always uses [all...] |
Hashtable.java | 146 * @param loadFactor 149 public Hashtable(int capacity, float loadFactor) { 152 if (loadFactor <= 0 || Float.isNaN(loadFactor)) { 153 throw new IllegalArgumentException("Load factor: " + loadFactor); 157 * Note that this implementation ignores loadFactor; it always uses [all...] |
/packages/apps/Mms/src/com/android/mms/util/ |
SimpleCache.java | 43 public SoftReferenceMap(int initialCapacity, int maxCapacity, float loadFactor) { 44 super(initialCapacity, loadFactor, true); 59 public HardReferenceMap(int initialCapacity, int maxCapacity, float loadFactor) { 60 super(initialCapacity, loadFactor, true); 85 * @param loadFactor the initial load balancing factor for the internal 88 public SimpleCache(int initialCapacity, int maxCapacity, float loadFactor, 92 mHardReferences = new HardReferenceMap(initialCapacity, maxCapacity, loadFactor); 94 mSoftReferences = new SoftReferenceMap(initialCapacity, maxCapacity, loadFactor);
|
/external/smack/src/org/jivesoftware/smack/util/collections/ |
ReferenceMap.java | 120 * @param loadFactor the load factor for the map 122 public ReferenceMap(int keyType, int valueType, int capacity, float loadFactor) { 123 super(keyType, valueType, capacity, loadFactor, false); 136 * @param loadFactor the load factor for the map 140 public ReferenceMap(int keyType, int valueType, int capacity, float loadFactor, boolean purgeValues) { 141 super(keyType, valueType, capacity, loadFactor, purgeValues);
|
AbstractHashedMap.java | 79 protected transient float loadFactor; 120 * @param loadFactor the load factor, must be > 0.0f and generally < 1.0f 123 protected AbstractHashedMap(int initialCapacity, float loadFactor, int threshold) { 125 this.loadFactor = loadFactor; 147 * @param loadFactor the load factor 151 protected AbstractHashedMap(int initialCapacity, float loadFactor) { 156 if (loadFactor <= 0.0f || Float.isNaN(loadFactor)) { 159 this.loadFactor = loadFactor [all...] |
AbstractReferenceMap.java | 138 * @param loadFactor the load factor for the map 142 protected AbstractReferenceMap(int keyType, int valueType, int capacity, float loadFactor, boolean purgeValues) { 143 super(capacity, loadFactor); 978 out.writeFloat(loadFactor); [all...] |
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
MapMaker.java | 46 float loadFactor) { 47 this(expirationMillis, null, maximumSize, initialCapacity, loadFactor); 51 int maximumSize, int initialCapacity, float loadFactor) { 52 super(initialCapacity, loadFactor, (maximumSize != -1)); 162 private float loadFactor = 0.75f; 178 public MapMaker loadFactor(float loadFactor) { 179 if (loadFactor <= 0) { 182 this.loadFactor = loadFactor; [all...] |
/external/emma/core/java12/com/vladium/util/ |
IntObjectMap.java | 49 * @param loadFactor the load factor to use to determine rehashing points [must be in (0.0, 1.0] range]. 51 public IntObjectMap (int initialCapacity, final float loadFactor) 54 if ((loadFactor <= 0.0) || (loadFactor >= 1.0 + 1.0E-6)) 55 throw new IllegalArgumentException ("loadFactor not in (0.0, 1.0] range: " + loadFactor); 59 m_loadFactor = loadFactor > 1.0 ? 1.0F : loadFactor; 60 m_sizeThreshold = (int) (initialCapacity * loadFactor);
|
IntSet.java | 47 * @param loadFactor the load factor to use to determine rehashing points [must be in (0.0, 1.0] range]. 49 public IntSet (int initialCapacity, final float loadFactor) 52 if ((loadFactor <= 0.0) || (loadFactor >= 1.0 + 1.0E-6)) 53 throw new IllegalArgumentException ("loadFactor not in (0.0, 1.0] range: " + loadFactor); 57 m_loadFactor = loadFactor > 1.0 ? 1.0F : loadFactor; 58 m_sizeThreshold = (int) (initialCapacity * loadFactor);
|
IntIntMap.java | 49 * @param loadFactor the load factor to use to determine rehashing points [must be in (0.0, 1.0] range]. 51 public IntIntMap (int initialCapacity, final float loadFactor) 54 if ((loadFactor <= 0.0) || (loadFactor >= 1.0 + 1.0E-6)) 55 throw new IllegalArgumentException ("loadFactor not in (0.0, 1.0] range: " + loadFactor); 59 m_loadFactor = loadFactor > 1.0 ? 1.0F : loadFactor; 60 m_sizeThreshold = (int) (initialCapacity * loadFactor);
|
ObjectIntMap.java | 51 * @param loadFactor the load factor to use to determine rehashing points [must be in (0.0, 1.0] range]. 53 public ObjectIntMap (int initialCapacity, final float loadFactor) 56 if ((loadFactor <= 0.0) || (loadFactor >= 1.0 + 1.0E-6)) 57 throw new IllegalArgumentException ("loadFactor not in (0.0, 1.0] range: " + loadFactor); 61 m_loadFactor = loadFactor > 1.0 ? 1.0F : loadFactor; 62 m_sizeThreshold = (int) (initialCapacity * loadFactor);
|
SoftValueMap.java | 63 * @param loadFactor the load factor to use to determine rehashing points 72 public SoftValueMap (int initialCapacity, final float loadFactor, final int readClearCheckFrequency, final int writeClearCheckFrequency) 76 if ((loadFactor <= 0.0) || (loadFactor >= 1.0 + 1.0E-6)) 77 throw new IllegalArgumentException ("loadFactor not in (0.0, 1.0] range: " + loadFactor); 87 m_loadFactor = loadFactor; 88 m_sizeThreshold = (int) (initialCapacity * loadFactor);
|
/frameworks/native/libs/utils/ |
BasicHashtable.cpp | 28 size_t minimumInitialCapacity, float loadFactor) : 30 mLoadFactor(loadFactor), mSize(0), 198 void BasicHashtableImpl::rehash(size_t minimumCapacity, float loadFactor) { 203 determineCapacity(minimumCapacity, loadFactor, &newBucketCount, &newCapacity); 238 mLoadFactor = loadFactor; 320 void BasicHashtableImpl::determineCapacity(size_t minimumCapacity, float loadFactor, 322 LOG_ALWAYS_FATAL_IF(loadFactor <= 0.0f || loadFactor > 1.0f, 323 "Invalid load factor %0.3f. Must be in the range (0, 1].", loadFactor); 325 size_t count = ceilf(minimumCapacity / loadFactor) + 1 [all...] |
/frameworks/native/include/utils/ |
BasicHashtable.h | 53 size_t minimumInitialCapacity, float loadFactor); 71 void rehash(size_t minimumCapacity, float loadFactor); 115 static void determineCapacity(size_t minimumCapacity, float loadFactor, 177 * loadFactor: The desired load factor for the hashtable, between 0 and 1. 180 BasicHashtable(size_t minimumInitialCapacity = 0, float loadFactor = 0.75f); 222 inline float loadFactor() const { 325 * loadFactor: The desired load factor after rehashing. 327 inline void rehash(size_t minimumCapacity, float loadFactor) { 328 BasicHashtableImpl::rehash(minimumCapacity, loadFactor); 361 BasicHashtable<TKey, TEntry>::BasicHashtable(size_t minimumInitialCapacity, float loadFactor) [all...] |
/external/jmonkeyengine/engine/src/core/com/jme3/util/ |
IntMap.java | 49 private final float loadFactor; 60 public IntMap(int initialCapacity, float loadFactor) { 67 if (loadFactor <= 0){ 74 this.loadFactor = loadFactor; 75 this.threshold = (int) (capacity * loadFactor); 161 threshold = (int) (newCapacity * loadFactor);
|
/external/guava/guava-gwt/src-super/java/util/super/java/util/concurrent/ |
ConcurrentHashMap.java | 48 public ConcurrentHashMap(int initialCapacity, float loadFactor) { 49 this.backingMap = new HashMap<K, V>(initialCapacity, loadFactor);
|
/external/javassist/src/main/javassist/scopedpool/ |
SoftValueHashMap.java | 89 * @param loadFactor 96 public SoftValueHashMap(int initialCapacity, float loadFactor) { 97 hash = new HashMap(initialCapacity, loadFactor);
|
/frameworks/native/libs/utils/tests/ |
BasicHashtable_test.cpp | 184 EXPECT_EQ(0.75f, h.loadFactor()); 193 EXPECT_EQ(0.8f, h.loadFactor()); 200 EXPECT_EQ(46U, h.capacity()); // must be one less than bucketCount because loadFactor == 1.0f 202 EXPECT_EQ(1.0f, h.loadFactor()); 209 EXPECT_EQ(46U, h.capacity()); // must be one less than bucketCount because loadFactor == 1.0f 211 EXPECT_EQ(1.0f, h.loadFactor()); 317 EXPECT_EQ(0.75f, h.loadFactor()); 329 EXPECT_EQ(0.75f, h.loadFactor()); 344 EXPECT_EQ(0.75f, h.loadFactor()); 362 EXPECT_EQ(0.75f, h.loadFactor()); [all...] |
/libcore/luni/src/main/java/java/util/concurrent/ |
ConcurrentHashMap.java | 315 * loadFactor)</tt>.) 325 final float loadFactor; 328 this.loadFactor = lf; 402 threshold = (int)(newCapacity * loadFactor); 646 float lf = proto.loadFactor; 692 * @param loadFactor the load factor threshold, used to control resizing. 704 float loadFactor, int concurrencyLevel) { 705 if (!(loadFactor > 0) || initialCapacity < 0 || concurrencyLevel <= 0) 728 new Segment<K,V>(loadFactor, (int)(cap * loadFactor), [all...] |
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/ |
org.eclipse.equinox.util_1.0.200.v20100503.jar | |