You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by si...@apache.org on 2012/03/10 08:37:01 UTC

svn commit: r1299157 - /commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/main/java/org/apache/commons/graph/builder/AbstractGraphConnection.java

Author: simonetripodi
Date: Sat Mar 10 07:37:00 2012
New Revision: 1299157

URL: http://svn.apache.org/viewvc?rev=1299157&view=rev
Log:
reflected Connector APIs in the Abstract module

Modified:
    commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/main/java/org/apache/commons/graph/builder/AbstractGraphConnection.java

Modified: commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/main/java/org/apache/commons/graph/builder/AbstractGraphConnection.java
URL: http://svn.apache.org/viewvc/commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/main/java/org/apache/commons/graph/builder/AbstractGraphConnection.java?rev=1299157&r1=1299156&r2=1299157&view=diff
==============================================================================
--- commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/main/java/org/apache/commons/graph/builder/AbstractGraphConnection.java (original)
+++ commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/main/java/org/apache/commons/graph/builder/AbstractGraphConnection.java Sat Mar 10 07:37:00 2012
@@ -42,14 +42,14 @@ public abstract class AbstractGraphConne
         }
     }
 
-    protected final V addVertex( V vertex )
+    protected final <N extends V> N addVertex( N node )
     {
-        return connector.addVertex( vertex );
+        return connector.addVertex( node );
     }
 
-    protected final HeadVertexConnector<V, E> addEdge( E edge )
+    protected final <A extends E> HeadVertexConnector<V, E> addEdge( A arc )
     {
-        return connector.addEdge( edge );
+        return connector.addEdge( arc );
     }
 
     public abstract void connect();