Home
last modified time | relevance | path

Searched refs:initialCapacity (Results 1 – 25 of 28) sorted by relevance

12

/libcore/ojluni/src/main/java/java/util/
DLinkedHashSet.java133 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()
DHashSet.java131 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()
DArrayDeque.java129 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 …]
DLinkedHashMap.java370 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()
DPriorityQueue.java134 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()
DVector.java130 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()
DHashtable.java180 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()
DArrayList.java164 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/
DAbstractSpinedBuffer.java89 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()
DSpinedBuffer.java99 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()
DStreamSpliterators.java1126 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/
DHashSet.java42 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
DPriorityQueue.java37 public PriorityQueue(int initialCapacity) { in PriorityQueue() argument
45 public PriorityQueue(int initialCapacity, java.util.Comparator<? super E> comparator) { in PriorityQueue() argument
DLinkedHashMap.java33 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
DVector.java37 public Vector(int initialCapacity, int capacityIncrement) { in Vector() argument
41 public Vector(int initialCapacity) { in Vector() argument
/libcore/ojluni/annotations/mmodule/java/util/
DLinkedHashMap.annotated.java33 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/
DHashSet.annotated.java37 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
DWeakHashMap.annotated.java35 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
DHashMap.annotated.java33 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
DVector.annotated.java33 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
DArrayList.annotated.java34 public ArrayList(int initialCapacity) { throw new RuntimeException("Stub!"); } in ArrayList() argument
/libcore/ojluni/src/main/java/sun/util/locale/
DLocaleObjectCache.java47 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/
DPriorityBlockingQueue.java203 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/
DPriorityBlockingQueue.java48 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/
DObjectOutputStream.java554 HandleTable(int initialCapacity, float loadFactor) { in HandleTable() argument
713 ReplaceTable(int initialCapacity, float loadFactor) { in ReplaceTable() argument

12