Home | History | Annotate | Download | only in protobuf

Lines Matching refs:array

40  * An implementation of {@link LongList} on top of a primitive array.
58 private long[] array;
61 * The size of the list distinct from the length of the array. That is, it is the number of
76 private LongArrayList(long[] array, int size) {
77 this.array = array;
94 final long[] arr = other.array;
96 if (array[i] != arr[i]) {
108 result = (31 * result) + Internal.hashLong(array[i]);
118 return new LongArrayList(Arrays.copyOf(array, capacity), size);
129 return array[index];
146 long previousValue = array[index];
147 array[index] = element;
173 if (size < array.length) {
175 System.arraycopy(array, index, array, index + 1, size - index);
182 System.arraycopy(array, 0, newArray, 0, index);
185 System.arraycopy(array, index, newArray, index + 1, size - index);
186 array = newArray;
189 array[index] = element;
219 if (newSize > array.length) {
220 array = Arrays.copyOf(array, newSize);
223 System.arraycopy(list.array, 0, array, size, list.size);
233 if (o.equals(array[i])) {
234 System.arraycopy(array, i + 1, array, i, size - i);
247 long value = array[index];
248 System.arraycopy(array, index + 1, array, index, size - index);