commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1136626 - /commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/model/InMemoryPath.java
Date Thu, 16 Jun 2011 19:48:23 GMT
Author: simonetripodi
Date: Thu Jun 16 19:48:23 2011
New Revision: 1136626

URL: http://svn.apache.org/viewvc?rev=1136626&view=rev
Log:
added toString method implementation

Modified:
    commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/model/InMemoryPath.java

Modified: commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/model/InMemoryPath.java
URL: http://svn.apache.org/viewvc/commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/model/InMemoryPath.java?rev=1136626&r1=1136625&r2=1136626&view=diff
==============================================================================
--- commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/model/InMemoryPath.java
(original)
+++ commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/model/InMemoryPath.java
Thu Jun 16 19:48:23 2011
@@ -19,6 +19,7 @@ package org.apache.commons.graph.model;
  * under the License.
  */
 
+import static java.lang.String.format;
 import static java.util.Collections.unmodifiableList;
 
 import java.util.LinkedList;
@@ -124,4 +125,13 @@ public final class InMemoryPath<V extend
         return weigth;
     }
 
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public String toString()
+    {
+        return format( "InMemoryPath [weigth=%s, edges=%s]", weigth, edges );
+    }
+
 }



Mime
View raw message