commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1134700 - /commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/MutableDirectedGraph.java
Date Sat, 11 Jun 2011 17:36:11 GMT
Author: simonetripodi
Date: Sat Jun 11 17:36:10 2011
New Revision: 1134700

URL: http://svn.apache.org/viewvc?rev=1134700&view=rev
Log:
fixed Vertex,Edge Generics types

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

Modified: commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/MutableDirectedGraph.java
URL: http://svn.apache.org/viewvc/commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/MutableDirectedGraph.java?rev=1134700&r1=1134699&r2=1134700&view=diff
==============================================================================
--- commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/MutableDirectedGraph.java
(original)
+++ commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/MutableDirectedGraph.java
Sat Jun 11 17:36:10 2011
@@ -24,32 +24,32 @@ import org.apache.commons.graph.exceptio
 /**
  * Description of the Interface
  */
-public interface MutableDirectedGraph
-     extends DirectedGraph
+public interface MutableDirectedGraph<V extends Vertex, E extends Edge>
+     extends DirectedGraph<V, E>
 {
     /**
      * Adds a feature to the Vertex attribute of the MutableDirectedGraph object
      */
-    public void addVertex(Vertex v)
+    public void addVertex(V v)
         throws GraphException;
 
     /**
      * Adds a feature to the Edge attribute of the MutableDirectedGraph object
      */
-    public void addEdge(Edge e,
-                        Vertex source,
-                        Vertex target)
+    public void addEdge(E e,
+                        V source,
+                        V target)
         throws GraphException;
 
     /**
      * Description of the Method
      */
-    public void removeVertex(Vertex v)
+    public void removeVertex(V v)
         throws GraphException;
 
     /**
      * Description of the Method
      */
-    public void removeEdge(Edge e)
+    public void removeEdge(E e)
         throws GraphException;
 }



Mime
View raw message