Lines Matching refs:loadFactor
141 * value of this field is (int)(capacity * loadFactor).)
152 private float loadFactor;
247 * @param loadFactor the load factor of the hashtable.
251 public Hashtable(int initialCapacity, float loadFactor) {
255 if (loadFactor <= 0 || Float.isNaN(loadFactor))
256 throw new IllegalArgumentException("Illegal Load: "+loadFactor);
260 this.loadFactor = loadFactor;
262 threshold = (int)Math.min(initialCapacity * loadFactor, MAX_ARRAY_SIZE + 1);
474 threshold = (int)Math.min(newCapacity * loadFactor, MAX_ARRAY_SIZE + 1);
902 * abuses the loadFactor field to do double-duty as a hashCode
908 if (count == 0 || loadFactor < 0)
911 loadFactor = -loadFactor; // Mark hashCode computation in progress
918 loadFactor = -loadFactor; // Mark hashCode computation complete
982 int length = (int)(elements * loadFactor) + (elements / 20) + 3;
989 threshold = (int) Math.min(length * loadFactor, MAX_ARRAY_SIZE + 1);