Lines Matching defs:array
41 * A {@code long} array in which elements may be updated atomically.
53 private final long[] array;
63 if (i < 0 || i >= array.length)
77 * @param length the length of the array
80 array = new long[length];
85 * all elements copied from, the given array.
87 * @param array the array to copy elements from
88 * @throws NullPointerException if array is null
90 public AtomicLongArray(long[] array) {
92 this.array = array.clone();
96 * Returns the length of the array.
98 * @return the length of the array
101 return array.length;
115 return unsafe.getLongVolatile(array, offset);
125 unsafe.putLongVolatile(array, checkedByteOffset(i), newValue);
136 unsafe.putOrderedLong(array, checkedByteOffset(i), newValue);
172 return unsafe.compareAndSwapLong(array, offset, expect, update);
266 * Returns the String representation of the current values of array.
267 * @return the String representation of the current values of array
270 int iMax = array.length - 1;