commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1134693 - /commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/MutableGraph.java
Date Sat, 11 Jun 2011 16:58:56 GMT
Author: simonetripodi
Date: Sat Jun 11 16:58:56 2011
New Revision: 1134693

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

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

Modified: commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/MutableGraph.java
URL: http://svn.apache.org/viewvc/commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/MutableGraph.java?rev=1134693&r1=1134692&r2=1134693&view=diff
==============================================================================
--- commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/MutableGraph.java (original)
+++ commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/MutableGraph.java Sat
Jun 11 16:58:56 2011
@@ -24,42 +24,42 @@ import org.apache.commons.graph.exceptio
 /**
  * The {@code MutableGraph} is a graph that supports the addition and removal of {@link Vertex}
and {@link Edge}s.
  */
-public interface MutableGraph
-     extends Graph
+public interface MutableGraph<V extends Vertex, E extends Edge>
+     extends Graph<V, E>
 {
     /**
      * Adds a feature to the Vertex attribute of the MutableGraph object
      */
-    void addVertex(Vertex v)
+    void addVertex(V v)
         throws GraphException;
 
     /**
      * Description of the Method
      */
-    void removeVertex(Vertex v)
+    void removeVertex(V v)
         throws GraphException;
 
     /**
      * Adds a feature to the Edge attribute of the MutableGraph object
      */
-    void addEdge(Edge e)
+    void addEdge(E e)
         throws GraphException;
 
     /**
      * Description of the Method
      */
-    void removeEdge(Edge e)
+    void removeEdge(E e)
         throws GraphException;
 
     /**
      * Description of the Method
      */
-    void connect(Edge e, Vertex v)
+    void connect(E e, V v)
         throws GraphException;
 
     /**
      * Description of the Method
      */
-    void disconnect(Edge e, Vertex v)
+    void disconnect(E e, V v)
         throws GraphException;
 }



Mime
View raw message