Lines Matching defs:value

12  * An {@code int} value that may be updated atomically.  See the
34 (AtomicInteger.class.getDeclaredField("value"));
38 private volatile int value;
41 * Creates a new AtomicInteger with the given initial value.
43 * @param initialValue the initial value
46 value = initialValue;
50 * Creates a new AtomicInteger with initial value {@code 0}.
56 * Gets the current value.
58 * @return the current value
61 return value;
65 * Sets to the given value.
67 * @param newValue the new value
70 value = newValue;
74 * Eventually sets to the given value.
76 * @param newValue the new value
84 * Atomically sets to the given value and returns the old value.
86 * @param newValue the new value
87 * @return the previous value
98 * Atomically sets the value to the given updated value
99 * if the current value {@code ==} the expected value.
101 * @param expect the expected value
102 * @param update the new value
104 * the actual value was not equal to the expected value.
111 * Atomically sets the value to the given updated value
112 * if the current value {@code ==} the expected value.
118 * @param expect the expected value
119 * @param update the new value
127 * Atomically increments by one the current value.
129 * @return the previous value
141 * Atomically decrements by one the current value.
143 * @return the previous value
155 * Atomically adds the given value to the current value.
157 * @param delta the value to add
158 * @return the previous value
170 * Atomically increments by one the current value.
172 * @return the updated value
184 * Atomically decrements by one the current value.
186 * @return the updated value
198 * Atomically adds the given value to the current value.
200 * @param delta the value to add
201 * @return the updated value
213 * Returns the String representation of the current value.
214 * @return the String representation of the current value
221 * Returns the value of this {@code AtomicInteger} as an {@code int}.
228 * Returns the value of this {@code AtomicInteger} as a {@code long}
236 * Returns the value of this {@code AtomicInteger} as a {@code float}
244 * Returns the value of this {@code AtomicInteger} as a {@code double}