commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brentwor...@apache.org
Subject svn commit: r178166 - /jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/util/MathUtils.java
Date Tue, 24 May 2005 13:24:22 GMT
Author: brentworden
Date: Tue May 24 06:24:21 2005
New Revision: 178166

URL: http://svn.apache.org/viewcvs?rev=178166&view=rev
Log:
added @since tag to new methods.

Modified:
    jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/util/MathUtils.java

Modified: jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/util/MathUtils.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/util/MathUtils.java?rev=178166&r1=178165&r2=178166&view=diff
==============================================================================
--- jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/util/MathUtils.java
(original)
+++ jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/util/MathUtils.java
Tue May 24 06:24:21 2005
@@ -533,6 +533,7 @@
      * @param a the first integer value.
      * @param b the second integer value.
      * @return the least common multiple between a and b.
+     * @since 1.1
      */
     public static int lcm(int a, int b) {
         return Math.abs(a / gcd(a, b) * b);
@@ -547,6 +548,7 @@
      * @param u  a non-zero number
      * @param v  a non-zero number
      * @return the greatest common divisor, never zero
+     * @since 1.1
      */
     public static int gcd(int u, int v) {
         if (u * v == 0) {
@@ -600,6 +602,7 @@
      * @return the product <code>x*y</code>
      * @throws ArithmeticException if the result can not be represented as
      *                             an int
+     * @since 1.1
      */
     public static int mulAndCheck(int x, int y) {
         long m = ((long)x)*((long)y);
@@ -618,6 +621,7 @@
      * @return the sum <code>x+y</code>
      * @throws ArithmeticException if the result can not be represented as
      * an int
+     * @since 1.1
      */
     public static int addAndCheck(int x, int y) {
         long s = (long)x+(long)y;
@@ -636,6 +640,7 @@
      * @return the difference <code>x-y</code>
      * @throws ArithmeticException if the result can not be represented as
      * an int
+     * @since 1.1
      */
     public static int subAndCheck(int x, int y) {
         long s = (long)x-(long)y;



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message