Home
last modified time | relevance | path

Searched refs:elementData (Results 1 – 6 of 6) sorted by relevance

/libcore/ojluni/src/main/java/java/util/
DArrayList.java148 transient Object[] elementData; // non-private to simplify nested class access field in ArrayList
166 this.elementData = new Object[initialCapacity]; in ArrayList()
168 this.elementData = EMPTY_ELEMENTDATA; in ArrayList()
179 this.elementData = DEFAULTCAPACITY_EMPTY_ELEMENTDATA; in ArrayList()
191 elementData = c.toArray(); in ArrayList()
192 if ((size = elementData.length) != 0) { in ArrayList()
194 if (elementData.getClass() != Object[].class) in ArrayList()
195 elementData = Arrays.copyOf(elementData, size, Object[].class); in ArrayList()
198 this.elementData = EMPTY_ELEMENTDATA; in ArrayList()
209 if (size < elementData.length) { in trimToSize()
[all …]
DVector.java96 protected Object[] elementData; field in Vector
135 this.elementData = new Object[initialCapacity]; in Vector()
171 elementData = c.toArray(); in Vector()
172 elementCount = elementData.length; in Vector()
174 if (elementData.getClass() != Object[].class) in Vector()
175 elementData = Arrays.copyOf(elementData, elementCount, Object[].class); in Vector()
192 System.arraycopy(elementData, 0, anArray, 0, elementCount); in copyInto()
205 int oldCapacity = elementData.length; in trimToSize()
207 elementData = Arrays.copyOf(elementData, elementCount); in trimToSize()
245 if (minCapacity - elementData.length > 0) in ensureCapacityHelper()
[all …]
DCollections.java210 Arrays.sort((T[]) ((ArrayList) list).elementData, 0, list.size(), c); in sort()
/libcore/ojluni/annotations/hiddenapi/java/util/
DVector.java166 E elementData(int index) { in elementData() method in Vector
280 protected java.lang.Object[] elementData; field in Vector
DArrayList.java232 transient java.lang.Object[] elementData; field in ArrayList
/libcore/ojluni/annotations/sdk/nullability/java/util/
DVector.annotated.java145 protected java.lang.@libcore.util.Nullable Object @libcore.util.NonNull [] elementData; field in Vector