Add missing @since tags in the mutable package

This commit is contained in:
Benedikt Ritter 2016-09-11 16:02:01 +02:00
parent d772e171d6
commit d0049e1ac3
6 changed files with 24 additions and 0 deletions

View File

@ -227,6 +227,7 @@ public void subtract(final Number operand) {
*
* @param operand the quantity to add, not null
* @return the value associated with this instance after adding the operand
* @since 3.5
*/
public byte addAndGet(final byte operand) {
this.value += operand;
@ -240,6 +241,7 @@ public byte addAndGet(final byte operand) {
* @param operand the quantity to add, not null
* @throws NullPointerException if {@code operand} is null
* @return the value associated with this instance after adding the operand
* @since 3.5
*/
public byte addAndGet(final Number operand) {
this.value += operand.byteValue();
@ -252,6 +254,7 @@ public byte addAndGet(final Number operand) {
*
* @param operand the quantity to add, not null
* @return the value associated with this instance immediately before the operand was added
* @since 3.5
*/
public byte getAndAdd(final byte operand) {
byte last = value;
@ -266,6 +269,7 @@ public byte getAndAdd(final byte operand) {
* @param operand the quantity to add, not null
* @throws NullPointerException if {@code operand} is null
* @return the value associated with this instance immediately before the operand was added
* @since 3.5
*/
public byte getAndAdd(final Number operand) {
byte last = value;

View File

@ -244,6 +244,7 @@ public void subtract(final Number operand) {
*
* @param operand the quantity to add, not null
* @return the value associated with this instance after adding the operand
* @since 3.5
*/
public double addAndGet(final double operand) {
this.value += operand;
@ -257,6 +258,7 @@ public double addAndGet(final double operand) {
* @param operand the quantity to add, not null
* @throws NullPointerException if {@code operand} is null
* @return the value associated with this instance after adding the operand
* @since 3.5
*/
public double addAndGet(final Number operand) {
this.value += operand.doubleValue();
@ -269,6 +271,7 @@ public double addAndGet(final Number operand) {
*
* @param operand the quantity to add, not null
* @return the value associated with this instance immediately before the operand was added
* @since 3.5
*/
public double getAndAdd(final double operand) {
double last = value;
@ -283,6 +286,7 @@ public double getAndAdd(final double operand) {
* @param operand the quantity to add, not null
* @throws NullPointerException if {@code operand} is null
* @return the value associated with this instance immediately before the operand was added
* @since 3.5
*/
public double getAndAdd(final Number operand) {
double last = value;

View File

@ -244,6 +244,7 @@ public void subtract(final Number operand) {
*
* @param operand the quantity to add, not null
* @return the value associated with this instance after adding the operand
* @since 3.5
*/
public float addAndGet(final float operand) {
this.value += operand;
@ -257,6 +258,7 @@ public float addAndGet(final float operand) {
* @param operand the quantity to add, not null
* @throws NullPointerException if {@code operand} is null
* @return the value associated with this instance after adding the operand
* @since 3.5
*/
public float addAndGet(final Number operand) {
this.value += operand.floatValue();
@ -269,6 +271,7 @@ public float addAndGet(final Number operand) {
*
* @param operand the quantity to add, not null
* @return the value associated with this instance immediately before the operand was added
* @since 3.5
*/
public float getAndAdd(final float operand) {
float last = value;
@ -283,6 +286,7 @@ public float getAndAdd(final float operand) {
* @param operand the quantity to add, not null
* @throws NullPointerException if {@code operand} is null
* @return the value associated with this instance immediately before the operand was added
* @since 3.5
*/
public float getAndAdd(final Number operand) {
float last = value;

View File

@ -227,6 +227,7 @@ public void subtract(final Number operand) {
*
* @param operand the quantity to add, not null
* @return the value associated with this instance after adding the operand
* @since 3.5
*/
public int addAndGet(final int operand) {
this.value += operand;
@ -240,6 +241,7 @@ public int addAndGet(final int operand) {
* @param operand the quantity to add, not null
* @throws NullPointerException if {@code operand} is null
* @return the value associated with this instance after adding the operand
* @since 3.5
*/
public int addAndGet(final Number operand) {
this.value += operand.intValue();
@ -252,6 +254,7 @@ public int addAndGet(final Number operand) {
*
* @param operand the quantity to add, not null
* @return the value associated with this instance immediately before the operand was added
* @since 3.5
*/
public int getAndAdd(final int operand) {
int last = value;
@ -266,6 +269,7 @@ public int getAndAdd(final int operand) {
* @param operand the quantity to add, not null
* @throws NullPointerException if {@code operand} is null
* @return the value associated with this instance immediately before the operand was added
* @since 3.5
*/
public int getAndAdd(final Number operand) {
int last = value;

View File

@ -227,6 +227,7 @@ public void subtract(final Number operand) {
*
* @param operand the quantity to add, not null
* @return the value associated with this instance after adding the operand
* @since 3.5
*/
public long addAndGet(final long operand) {
this.value += operand;
@ -240,6 +241,7 @@ public long addAndGet(final long operand) {
* @param operand the quantity to add, not null
* @throws NullPointerException if {@code operand} is null
* @return the value associated with this instance after adding the operand
* @since 3.5
*/
public long addAndGet(final Number operand) {
this.value += operand.longValue();
@ -252,6 +254,7 @@ public long addAndGet(final Number operand) {
*
* @param operand the quantity to add, not null
* @return the value associated with this instance immediately before the operand was added
* @since 3.5
*/
public long getAndAdd(final long operand) {
long last = value;
@ -266,6 +269,7 @@ public long getAndAdd(final long operand) {
* @param operand the quantity to add, not null
* @throws NullPointerException if {@code operand} is null
* @return the value associated with this instance immediately before the operand was added
* @since 3.5
*/
public long getAndAdd(final Number operand) {
long last = value;

View File

@ -227,6 +227,7 @@ public void subtract(final Number operand) {
*
* @param operand the quantity to add, not null
* @return the value associated with this instance after adding the operand
* @since 3.5
*/
public short addAndGet(final short operand) {
this.value += operand;
@ -240,6 +241,7 @@ public short addAndGet(final short operand) {
* @param operand the quantity to add, not null
* @throws NullPointerException if {@code operand} is null
* @return the value associated with this instance after adding the operand
* @since 3.5
*/
public short addAndGet(final Number operand) {
this.value += operand.shortValue();
@ -252,6 +254,7 @@ public short addAndGet(final Number operand) {
*
* @param operand the quantity to add, not null
* @return the value associated with this instance immediately before the operand was added
* @since 3.5
*/
public short getAndAdd(final short operand) {
short last = value;
@ -266,6 +269,7 @@ public short getAndAdd(final short operand) {
* @param operand the quantity to add, not null
* @throws NullPointerException if {@code operand} is null
* @return the value associated with this instance immediately before the operand was added
* @since 3.5
*/
public short getAndAdd(final Number operand) {
short last = value;