LANG-1189: Add getAndIncrement/getAndDecrement/getAndAdd/incrementAndGet/decrementAndGet/addAndGet in Mutable* classes

add since javadoc tags
This commit is contained in:
pascalschumacher 2016-06-03 17:21:58 +02:00
parent faeaa303b9
commit 9010f2ec84
6 changed files with 24 additions and 0 deletions

View File

@ -124,6 +124,7 @@ public void increment() {
* immediately prior to the increment operation. This method is not thread safe.
*
* @return the value associated with the instance before it was incremented
* @since 3.5
*/
public byte getAndIncrement() {
byte last = value;
@ -136,6 +137,7 @@ public byte getAndIncrement() {
* immediately after the increment operation. This method is not thread safe.
*
* @return the value associated with the instance after it is incremented
* @since 3.5
*/
public byte incrementAndGet() {
value++;
@ -156,6 +158,7 @@ public void decrement() {
* immediately prior to the decrement operation. This method is not thread safe.
*
* @return the value associated with the instance before it was decremented
* @since 3.5
*/
public byte getAndDecrement() {
byte last = value;
@ -168,6 +171,7 @@ public byte getAndDecrement() {
* immediately after the decrement operation. This method is not thread safe.
*
* @return the value associated with the instance after it is decremented
* @since 3.5
*/
public byte decrementAndGet() {
value--;

View File

@ -141,6 +141,7 @@ public void increment() {
* immediately prior to the increment operation. This method is not thread safe.
*
* @return the value associated with the instance before it was incremented
* @since 3.5
*/
public double getAndIncrement() {
double last = value;
@ -153,6 +154,7 @@ public double getAndIncrement() {
* immediately after the increment operation. This method is not thread safe.
*
* @return the value associated with the instance after it is incremented
* @since 3.5
*/
public double incrementAndGet() {
value++;
@ -173,6 +175,7 @@ public void decrement() {
* immediately prior to the decrement operation. This method is not thread safe.
*
* @return the value associated with the instance before it was decremented
* @since 3.5
*/
public double getAndDecrement() {
double last = value;
@ -185,6 +188,7 @@ public double getAndDecrement() {
* immediately after the decrement operation. This method is not thread safe.
*
* @return the value associated with the instance after it is decremented
* @since 3.5
*/
public double decrementAndGet() {
value--;

View File

@ -141,6 +141,7 @@ public void increment() {
* immediately prior to the increment operation. This method is not thread safe.
*
* @return the value associated with the instance before it was incremented
* @since 3.5
*/
public float getAndIncrement() {
float last = value;
@ -153,6 +154,7 @@ public float getAndIncrement() {
* immediately after the increment operation. This method is not thread safe.
*
* @return the value associated with the instance after it is incremented
* @since 3.5
*/
public float incrementAndGet() {
value++;
@ -173,6 +175,7 @@ public void decrement() {
* immediately prior to the decrement operation. This method is not thread safe.
*
* @return the value associated with the instance before it was decremented
* @since 3.5
*/
public float getAndDecrement() {
float last = value;
@ -185,6 +188,7 @@ public float getAndDecrement() {
* immediately after the decrement operation. This method is not thread safe.
*
* @return the value associated with the instance after it is decremented
* @since 3.5
*/
public float decrementAndGet() {
value--;

View File

@ -124,6 +124,7 @@ public void increment() {
* immediately prior to the increment operation. This method is not thread safe.
*
* @return the value associated with the instance before it was incremented
* @since 3.5
*/
public int getAndIncrement() {
int last = value;
@ -136,6 +137,7 @@ public int getAndIncrement() {
* immediately after the increment operation. This method is not thread safe.
*
* @return the value associated with the instance after it is incremented
* @since 3.5
*/
public int incrementAndGet() {
value++;
@ -156,6 +158,7 @@ public void decrement() {
* immediately prior to the decrement operation. This method is not thread safe.
*
* @return the value associated with the instance before it was decremented
* @since 3.5
*/
public int getAndDecrement() {
int last = value;
@ -168,6 +171,7 @@ public int getAndDecrement() {
* immediately after the decrement operation. This method is not thread safe.
*
* @return the value associated with the instance after it is decremented
* @since 3.5
*/
public int decrementAndGet() {
value--;

View File

@ -124,6 +124,7 @@ public void increment() {
* immediately prior to the increment operation. This method is not thread safe.
*
* @return the value associated with the instance before it was incremented
* @since 3.5
*/
public long getAndIncrement() {
long last = value;
@ -136,6 +137,7 @@ public long getAndIncrement() {
* immediately after the increment operation. This method is not thread safe.
*
* @return the value associated with the instance after it is incremented
* @since 3.5
*/
public long incrementAndGet() {
value++;
@ -156,6 +158,7 @@ public void decrement() {
* immediately prior to the decrement operation. This method is not thread safe.
*
* @return the value associated with the instance before it was decremented
* @since 3.5
*/
public long getAndDecrement() {
long last = value;
@ -168,6 +171,7 @@ public long getAndDecrement() {
* immediately after the decrement operation. This method is not thread safe.
*
* @return the value associated with the instance after it is decremented
* @since 3.5
*/
public long decrementAndGet() {
value--;

View File

@ -124,6 +124,7 @@ public void increment() {
* immediately prior to the increment operation. This method is not thread safe.
*
* @return the value associated with the instance before it was incremented
* @since 3.5
*/
public short getAndIncrement() {
short last = value;
@ -136,6 +137,7 @@ public short getAndIncrement() {
* immediately after the increment operation. This method is not thread safe.
*
* @return the value associated with the instance after it is incremented
* @since 3.5
*/
public short incrementAndGet() {
value++;
@ -156,6 +158,7 @@ public void decrement() {
* immediately prior to the decrement operation. This method is not thread safe.
*
* @return the value associated with the instance before it was decremented
* @since 3.5
*/
public short getAndDecrement() {
short last = value;
@ -168,6 +171,7 @@ public short getAndDecrement() {
* immediately after the decrement operation. This method is not thread safe.
*
* @return the value associated with the instance after it is decremented
* @since 3.5
*/
public short decrementAndGet() {
value--;