/libcore/ojluni/src/main/java/java/util/ |
D | LinkedHashSet.java | 133 public LinkedHashSet(int initialCapacity, float loadFactor) { in LinkedHashSet() argument 134 super(initialCapacity, loadFactor, true); in LinkedHashSet() 145 public LinkedHashSet(int initialCapacity) { in LinkedHashSet() argument 146 super(initialCapacity, .75f, true); in LinkedHashSet()
|
D | HashSet.java | 131 public HashSet(int initialCapacity, float loadFactor) { in HashSet() argument 132 map = new HashMap<>(initialCapacity, loadFactor); in HashSet() 143 public HashSet(int initialCapacity) { in HashSet() argument 144 map = new HashMap<>(initialCapacity); in HashSet() 160 HashSet(int initialCapacity, float loadFactor, boolean dummy) { in HashSet() argument 161 map = new LinkedHashMap<>(initialCapacity, loadFactor); in HashSet()
|
D | ArrayDeque.java | 129 int initialCapacity = MIN_INITIAL_CAPACITY; in allocateElements() local 132 if (numElements >= initialCapacity) { in allocateElements() 133 initialCapacity = numElements; in allocateElements() 134 initialCapacity |= (initialCapacity >>> 1); in allocateElements() 135 initialCapacity |= (initialCapacity >>> 2); in allocateElements() 136 initialCapacity |= (initialCapacity >>> 4); in allocateElements() 137 initialCapacity |= (initialCapacity >>> 8); in allocateElements() 138 initialCapacity |= (initialCapacity >>> 16); in allocateElements() 139 initialCapacity++; in allocateElements() 141 if (initialCapacity < 0) // Too many elements, must back off in allocateElements() [all …]
|
D | LinkedHashMap.java | 370 public LinkedHashMap(int initialCapacity, float loadFactor) { in LinkedHashMap() argument 371 super(initialCapacity, loadFactor); in LinkedHashMap() 382 public LinkedHashMap(int initialCapacity) { in LinkedHashMap() argument 383 super(initialCapacity); in LinkedHashMap() 422 public LinkedHashMap(int initialCapacity, in LinkedHashMap() argument 425 super(initialCapacity, loadFactor); in LinkedHashMap()
|
D | PriorityQueue.java | 134 public PriorityQueue(int initialCapacity) { in PriorityQueue() argument 135 this(initialCapacity, null); in PriorityQueue() 162 public PriorityQueue(int initialCapacity, in PriorityQueue() argument 166 if (initialCapacity < 1) in PriorityQueue() 168 this.queue = new Object[initialCapacity]; in PriorityQueue()
|
D | Vector.java | 130 public Vector(int initialCapacity, int capacityIncrement) { in Vector() argument 132 if (initialCapacity < 0) in Vector() 134 initialCapacity); in Vector() 135 this.elementData = new Object[initialCapacity]; in Vector() 147 public Vector(int initialCapacity) { in Vector() argument 148 this(initialCapacity, 0); in Vector()
|
D | Hashtable.java | 180 public Hashtable(int initialCapacity, float loadFactor) { in Hashtable() argument 181 if (initialCapacity < 0) in Hashtable() 183 initialCapacity); in Hashtable() 187 if (initialCapacity==0) in Hashtable() 188 initialCapacity = 1; in Hashtable() 190 table = new HashtableEntry<?,?>[initialCapacity]; in Hashtable() 193 threshold = (int)Math.min(initialCapacity, MAX_ARRAY_SIZE + 1); in Hashtable() 204 public Hashtable(int initialCapacity) { in Hashtable() argument 205 this(initialCapacity, 0.75f); in Hashtable()
|
D | ArrayList.java | 164 public ArrayList(int initialCapacity) { in ArrayList() argument 165 if (initialCapacity > 0) { in ArrayList() 166 this.elementData = new Object[initialCapacity]; in ArrayList() 167 } else if (initialCapacity == 0) { in ArrayList() 171 initialCapacity); in ArrayList()
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | AbstractSpinedBuffer.java | 89 protected AbstractSpinedBuffer(int initialCapacity) { in AbstractSpinedBuffer() argument 90 if (initialCapacity < 0) in AbstractSpinedBuffer() 91 throw new IllegalArgumentException("Illegal Capacity: "+ initialCapacity); in AbstractSpinedBuffer() 94 … Integer.SIZE - Integer.numberOfLeadingZeros(initialCapacity - 1)); in AbstractSpinedBuffer()
|
D | SpinedBuffer.java | 99 public SpinedBuffer(int initialCapacity) { in SpinedBuffer() argument 100 super(initialCapacity); in SpinedBuffer() 455 OfPrimitive(int initialCapacity) { in OfPrimitive() argument 456 super(initialCapacity); in OfPrimitive() 735 public OfInt(int initialCapacity) { in OfInt() argument 736 super(initialCapacity); in OfInt() 852 public OfLong(int initialCapacity) { in OfLong() argument 853 super(initialCapacity); in OfLong() 971 public OfDouble(int initialCapacity) { in OfDouble() argument 972 super(initialCapacity); in OfDouble()
|
D | StreamSpliterators.java | 1126 protected abstract T_BUFF bufferCreate(int initialCapacity); in bufferCreate() argument 1154 protected ArrayBuffer.OfInt bufferCreate(int initialCapacity) { in bufferCreate() argument 1155 return new ArrayBuffer.OfInt(initialCapacity); in bufferCreate() 1189 protected ArrayBuffer.OfLong bufferCreate(int initialCapacity) { in bufferCreate() argument 1190 return new ArrayBuffer.OfLong(initialCapacity); in bufferCreate() 1224 protected ArrayBuffer.OfDouble bufferCreate(int initialCapacity) { in bufferCreate() argument 1225 return new ArrayBuffer.OfDouble(initialCapacity); in bufferCreate()
|
/libcore/ojluni/annotations/hiddenapi/java/util/ |
D | HashSet.java | 42 public HashSet(int initialCapacity, float loadFactor) { in HashSet() argument 46 public HashSet(int initialCapacity) { in HashSet() argument 50 HashSet(int initialCapacity, float loadFactor, boolean fake) { in HashSet() argument
|
D | PriorityQueue.java | 37 public PriorityQueue(int initialCapacity) { in PriorityQueue() argument 45 public PriorityQueue(int initialCapacity, java.util.Comparator<? super E> comparator) { in PriorityQueue() argument
|
D | LinkedHashMap.java | 33 public LinkedHashMap(int initialCapacity, float loadFactor) { in LinkedHashMap() argument 37 public LinkedHashMap(int initialCapacity) { in LinkedHashMap() argument 49 public LinkedHashMap(int initialCapacity, float loadFactor, boolean accessOrder) { in LinkedHashMap() argument
|
D | Vector.java | 37 public Vector(int initialCapacity, int capacityIncrement) { in Vector() argument 41 public Vector(int initialCapacity) { in Vector() argument
|
/libcore/ojluni/annotations/mmodule/java/util/ |
D | LinkedHashMap.annotated.java | 33 public LinkedHashMap(int initialCapacity, float loadFactor) { throw new RuntimeException("Stub!"); } in LinkedHashMap() argument 35 public LinkedHashMap(int initialCapacity) { throw new RuntimeException("Stub!"); } in LinkedHashMap() argument 41 public LinkedHashMap(int initialCapacity, float loadFactor, boolean accessOrder) { throw new Runtim… in LinkedHashMap() argument
|
/libcore/ojluni/annotations/sdk/nullability/java/util/ |
D | HashSet.annotated.java | 37 public HashSet(int initialCapacity, float loadFactor) { throw new RuntimeException("Stub!"); } in HashSet() argument 39 public HashSet(int initialCapacity) { throw new RuntimeException("Stub!"); } in HashSet() argument
|
D | WeakHashMap.annotated.java | 35 public WeakHashMap(int initialCapacity, float loadFactor) { throw new RuntimeException("Stub!"); } in WeakHashMap() argument 37 public WeakHashMap(int initialCapacity) { throw new RuntimeException("Stub!"); } in WeakHashMap() argument
|
D | HashMap.annotated.java | 33 public HashMap(int initialCapacity, float loadFactor) { throw new RuntimeException("Stub!"); } in HashMap() argument 35 public HashMap(int initialCapacity) { throw new RuntimeException("Stub!"); } in HashMap() argument
|
D | Vector.annotated.java | 33 public Vector(int initialCapacity, int capacityIncrement) { throw new RuntimeException("Stub!"); } in Vector() argument 35 public Vector(int initialCapacity) { throw new RuntimeException("Stub!"); } in Vector() argument
|
D | ArrayList.annotated.java | 34 public ArrayList(int initialCapacity) { throw new RuntimeException("Stub!"); } in ArrayList() argument
|
/libcore/ojluni/src/main/java/sun/util/locale/ |
D | LocaleObjectCache.java | 47 public LocaleObjectCache(int initialCapacity, float loadFactor, int concurrencyLevel) { in LocaleObjectCache() argument 48 map = new ConcurrentHashMap<>(initialCapacity, loadFactor, concurrencyLevel); in LocaleObjectCache()
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | PriorityBlockingQueue.java | 203 public PriorityBlockingQueue(int initialCapacity) { in PriorityBlockingQueue() argument 204 this(initialCapacity, null); in PriorityBlockingQueue() 219 public PriorityBlockingQueue(int initialCapacity, in PriorityBlockingQueue() argument 221 if (initialCapacity < 1) in PriorityBlockingQueue() 226 this.queue = new Object[initialCapacity]; in PriorityBlockingQueue()
|
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/ |
D | PriorityBlockingQueue.java | 48 public PriorityBlockingQueue(int initialCapacity) { in PriorityBlockingQueue() argument 52 public PriorityBlockingQueue(int initialCapacity, java.util.Comparator<? super E> comparator) { in PriorityBlockingQueue() argument
|
/libcore/ojluni/annotations/hiddenapi/java/io/ |
D | ObjectOutputStream.java | 554 HandleTable(int initialCapacity, float loadFactor) { in HandleTable() argument 713 ReplaceTable(int initialCapacity, float loadFactor) { in ReplaceTable() argument
|