diff --git a/src/main/java/org/apache/commons/lang3/mutable/MutableByte.java b/src/main/java/org/apache/commons/lang3/mutable/MutableByte.java index efe6dd1f0..61a175a8e 100644 --- a/src/main/java/org/apache/commons/lang3/mutable/MutableByte.java +++ b/src/main/java/org/apache/commons/lang3/mutable/MutableByte.java @@ -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; diff --git a/src/main/java/org/apache/commons/lang3/mutable/MutableDouble.java b/src/main/java/org/apache/commons/lang3/mutable/MutableDouble.java index aa089fe70..657886ece 100644 --- a/src/main/java/org/apache/commons/lang3/mutable/MutableDouble.java +++ b/src/main/java/org/apache/commons/lang3/mutable/MutableDouble.java @@ -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; diff --git a/src/main/java/org/apache/commons/lang3/mutable/MutableFloat.java b/src/main/java/org/apache/commons/lang3/mutable/MutableFloat.java index 9893c031a..00a500062 100644 --- a/src/main/java/org/apache/commons/lang3/mutable/MutableFloat.java +++ b/src/main/java/org/apache/commons/lang3/mutable/MutableFloat.java @@ -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; diff --git a/src/main/java/org/apache/commons/lang3/mutable/MutableInt.java b/src/main/java/org/apache/commons/lang3/mutable/MutableInt.java index 25bc5b98f..a25be7c78 100644 --- a/src/main/java/org/apache/commons/lang3/mutable/MutableInt.java +++ b/src/main/java/org/apache/commons/lang3/mutable/MutableInt.java @@ -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; diff --git a/src/main/java/org/apache/commons/lang3/mutable/MutableLong.java b/src/main/java/org/apache/commons/lang3/mutable/MutableLong.java index 51d14c790..bbb7b02c7 100644 --- a/src/main/java/org/apache/commons/lang3/mutable/MutableLong.java +++ b/src/main/java/org/apache/commons/lang3/mutable/MutableLong.java @@ -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; diff --git a/src/main/java/org/apache/commons/lang3/mutable/MutableShort.java b/src/main/java/org/apache/commons/lang3/mutable/MutableShort.java index 25cea60b6..a37949c3b 100644 --- a/src/main/java/org/apache/commons/lang3/mutable/MutableShort.java +++ b/src/main/java/org/apache/commons/lang3/mutable/MutableShort.java @@ -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;