Home | History | Annotate | Download | only in collect

Lines Matching refs:array

318       Object[] array = new Object[size()];
319 Platform.unsafeArrayCopy(elements, 0, array, 0, size());
320 return array;
323 @Override public <T> T[] toArray(T[] array) {
325 if (array.length < size) {
326 array = ObjectArrays.newArray(array, size);
327 } else if (array.length > size) {
328 array[size] = null;
330 Platform.unsafeArrayCopy(elements, 0, array, 0, size);
331 return array;
392 @Override public <T> T[] toArray(T[] array) {
394 if (array.length < size) {
395 array = ObjectArrays.newArray(array, size);
396 } else if (array.length > size) {
397 array[size] = null;
401 Object[] objectArray = array;
405 return array;