1 |
|
/* |
2 |
|
* Written by Doug Lea with assistance from members of JCP JSR-166 |
3 |
|
* Expert Group and released to the public domain, as explained at |
4 |
< |
* http://creativecommons.org/licenses/publicdomain |
4 |
> |
* http://creativecommons.org/publicdomain/zero/1.0/ |
5 |
|
* Other contributors include Andrew Wright, Jeffrey Hayes, |
6 |
|
* Pat Fisher, Mike Judd. |
7 |
|
*/ |
161 |
|
} |
162 |
|
|
163 |
|
/** |
164 |
< |
* getAndSet returns previous value and sets to given value at given index |
164 |
> |
* getAndSet returns previous value and sets to given value at given index |
165 |
|
*/ |
166 |
|
public void testGetAndSet() { |
167 |
|
AtomicLongArray ai = new AtomicLongArray(SIZE); |
174 |
|
} |
175 |
|
|
176 |
|
/** |
177 |
< |
* getAndAdd returns previous value and adds given value |
177 |
> |
* getAndAdd returns previous value and adds given value |
178 |
|
*/ |
179 |
|
public void testGetAndAdd() { |
180 |
|
AtomicLongArray ai = new AtomicLongArray(SIZE); |
218 |
|
} |
219 |
|
|
220 |
|
/** |
221 |
< |
* addAndGet adds given value to current, and returns current value |
221 |
> |
* addAndGet adds given value to current, and returns current value |
222 |
|
*/ |
223 |
|
public void testAddAndGet() { |
224 |
|
AtomicLongArray ai = new AtomicLongArray(SIZE); |