commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From er...@apache.org
Subject svn commit: r1145932 - /commons/proper/math/trunk/src/main/java/org/apache/commons/math/complex/Complex.java
Date Wed, 13 Jul 2011 09:41:49 GMT
Author: erans
Date: Wed Jul 13 09:41:49 2011
New Revision: 1145932

URL: http://svn.apache.org/viewvc?rev=1145932&view=rev
Log:
MATH-614
Added "toString" method.

Modified:
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/complex/Complex.java

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/complex/Complex.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/complex/Complex.java?rev=1145932&r1=1145931&r2=1145932&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/complex/Complex.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/complex/Complex.java Wed
Jul 13 09:41:49 2011
@@ -1012,4 +1012,9 @@ public class Complex implements FieldEle
         return ComplexField.getInstance();
     }
 
+    /** {@inheritDoc} */
+    @Override
+    public String toString() {
+        return "(" + real + ", " + imaginary + ")";
+    }
 }



Mime
View raw message