commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pascalschumac...@apache.org
Subject [lang] LANG-1189: Add getAndIncrement/getAndDecrement/getAndAdd/incrementAndGet/decrementAndGet/addAndGet in Mutable* classes
Date Fri, 03 Jun 2016 15:22:12 GMT
Repository: commons-lang
Updated Branches:
  refs/heads/master faeaa303b -> 9010f2ec8


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

add since javadoc tags


Project: http://git-wip-us.apache.org/repos/asf/commons-lang/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-lang/commit/9010f2ec
Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/9010f2ec
Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/9010f2ec

Branch: refs/heads/master
Commit: 9010f2ec84f8501d2d4044ab1113224148cc9b14
Parents: faeaa30
Author: pascalschumacher <pascalschumacher@gmx.net>
Authored: Fri Jun 3 17:21:58 2016 +0200
Committer: pascalschumacher <pascalschumacher@gmx.net>
Committed: Fri Jun 3 17:21:58 2016 +0200

----------------------------------------------------------------------
 src/main/java/org/apache/commons/lang3/mutable/MutableByte.java  | 4 ++++
 .../java/org/apache/commons/lang3/mutable/MutableDouble.java     | 4 ++++
 src/main/java/org/apache/commons/lang3/mutable/MutableFloat.java | 4 ++++
 src/main/java/org/apache/commons/lang3/mutable/MutableInt.java   | 4 ++++
 src/main/java/org/apache/commons/lang3/mutable/MutableLong.java  | 4 ++++
 src/main/java/org/apache/commons/lang3/mutable/MutableShort.java | 4 ++++
 6 files changed, 24 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-lang/blob/9010f2ec/src/main/java/org/apache/commons/lang3/mutable/MutableByte.java
----------------------------------------------------------------------
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 b6674d8..efe6dd1 100644
--- a/src/main/java/org/apache/commons/lang3/mutable/MutableByte.java
+++ b/src/main/java/org/apache/commons/lang3/mutable/MutableByte.java
@@ -124,6 +124,7 @@ public class MutableByte extends Number implements Comparable<MutableByte>,
Muta
      * 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 class MutableByte extends Number implements Comparable<MutableByte>,
Muta
      * 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 class MutableByte extends Number implements Comparable<MutableByte>,
Muta
      * 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 class MutableByte extends Number implements Comparable<MutableByte>,
Muta
      * 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--;

http://git-wip-us.apache.org/repos/asf/commons-lang/blob/9010f2ec/src/main/java/org/apache/commons/lang3/mutable/MutableDouble.java
----------------------------------------------------------------------
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 633b8fb..aa089fe 100644
--- a/src/main/java/org/apache/commons/lang3/mutable/MutableDouble.java
+++ b/src/main/java/org/apache/commons/lang3/mutable/MutableDouble.java
@@ -141,6 +141,7 @@ public class MutableDouble extends Number implements Comparable<MutableDouble>,
      * 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 class MutableDouble extends Number implements Comparable<MutableDouble>,
      * 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 class MutableDouble extends Number implements Comparable<MutableDouble>,
      * 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 class MutableDouble extends Number implements Comparable<MutableDouble>,
      * 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--;

http://git-wip-us.apache.org/repos/asf/commons-lang/blob/9010f2ec/src/main/java/org/apache/commons/lang3/mutable/MutableFloat.java
----------------------------------------------------------------------
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 9fc2955..9893c03 100644
--- a/src/main/java/org/apache/commons/lang3/mutable/MutableFloat.java
+++ b/src/main/java/org/apache/commons/lang3/mutable/MutableFloat.java
@@ -141,6 +141,7 @@ public class MutableFloat extends Number implements Comparable<MutableFloat>,
Mu
      * 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 class MutableFloat extends Number implements Comparable<MutableFloat>,
Mu
      * 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 class MutableFloat extends Number implements Comparable<MutableFloat>,
Mu
      * 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 class MutableFloat extends Number implements Comparable<MutableFloat>,
Mu
      * 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--;

http://git-wip-us.apache.org/repos/asf/commons-lang/blob/9010f2ec/src/main/java/org/apache/commons/lang3/mutable/MutableInt.java
----------------------------------------------------------------------
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 dd490cd..25bc5b9 100644
--- a/src/main/java/org/apache/commons/lang3/mutable/MutableInt.java
+++ b/src/main/java/org/apache/commons/lang3/mutable/MutableInt.java
@@ -124,6 +124,7 @@ public class MutableInt extends Number implements Comparable<MutableInt>,
Mutabl
      * 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 class MutableInt extends Number implements Comparable<MutableInt>,
Mutabl
      * 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 class MutableInt extends Number implements Comparable<MutableInt>,
Mutabl
      * 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 class MutableInt extends Number implements Comparable<MutableInt>,
Mutabl
      * 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--;

http://git-wip-us.apache.org/repos/asf/commons-lang/blob/9010f2ec/src/main/java/org/apache/commons/lang3/mutable/MutableLong.java
----------------------------------------------------------------------
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 01bbef6..51d14c7 100644
--- a/src/main/java/org/apache/commons/lang3/mutable/MutableLong.java
+++ b/src/main/java/org/apache/commons/lang3/mutable/MutableLong.java
@@ -124,6 +124,7 @@ public class MutableLong extends Number implements Comparable<MutableLong>,
Muta
      * 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 class MutableLong extends Number implements Comparable<MutableLong>,
Muta
      * 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 class MutableLong extends Number implements Comparable<MutableLong>,
Muta
      * 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 class MutableLong extends Number implements Comparable<MutableLong>,
Muta
      * 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--;

http://git-wip-us.apache.org/repos/asf/commons-lang/blob/9010f2ec/src/main/java/org/apache/commons/lang3/mutable/MutableShort.java
----------------------------------------------------------------------
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 2125f44..25cea60 100644
--- a/src/main/java/org/apache/commons/lang3/mutable/MutableShort.java
+++ b/src/main/java/org/apache/commons/lang3/mutable/MutableShort.java
@@ -124,6 +124,7 @@ public class MutableShort extends Number implements Comparable<MutableShort>,
Mu
      * 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 class MutableShort extends Number implements Comparable<MutableShort>,
Mu
      * 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 class MutableShort extends Number implements Comparable<MutableShort>,
Mu
      * 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 class MutableShort extends Number implements Comparable<MutableShort>,
Mu
      * 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--;


Mime
View raw message