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 2011/06/12 00:41:32 UTC
svn commit: r1134807 -
/commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/contract/Contract.java
Author: simonetripodi
Date: Sat Jun 11 22:41:31 2011
New Revision: 1134807
URL: http://svn.apache.org/viewvc?rev=1134807&view=rev
Log:
minor code format
Modified:
commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/contract/Contract.java
Modified: commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/contract/Contract.java
URL: http://svn.apache.org/viewvc/commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/contract/Contract.java?rev=1134807&r1=1134806&r2=1134807&view=diff
==============================================================================
--- commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/contract/Contract.java (original)
+++ commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/contract/Contract.java Sat Jun 11 22:41:31 2011
@@ -29,12 +29,13 @@ import org.apache.commons.graph.Vertex;
*/
public interface Contract
{
+
/**
* The impl that gets passed in is read-only. This is the representation of
* the graph you should work off of. If an edge or vertex addition is
* illegal to the contract, raise a GraphException with and explanation.
*/
- void setImpl(DirectedGraph impl);
+ void setImpl( DirectedGraph impl );
/**
* getInterface This returns the marker interface which is associated with
@@ -52,27 +53,25 @@ public interface Contract
/**
* Adds a feature to the Edge attribute of the Contract object
*/
- void addEdge(Edge e,
- Vertex start,
- Vertex end)
+ void addEdge( Edge e, Vertex start, Vertex end )
throws GraphException;
/**
* Adds a feature to the Vertex attribute of the Contract object
*/
- void addVertex(Vertex v)
+ void addVertex( Vertex v )
throws GraphException;
/**
* Description of the Method
*/
- void removeEdge(Edge e)
+ void removeEdge( Edge e )
throws GraphException;
/**
* Description of the Method
*/
- void removeVertex(Vertex v)
+ void removeVertex( Vertex v )
throws GraphException;
}