com.google.inject.grapher
Class Edge

java.lang.Object
  extended by com.google.inject.grapher.Edge
Direct Known Subclasses:
BindingEdge, DependencyEdge

public abstract class Edge
extends Object

Edge in a guice dependency graph.

Author:
bojand@google.com (Bojan Djordjevic)

Constructor Summary
protected Edge(NodeId fromId, NodeId toId)
           
 
Method Summary
abstract  Edge copy(NodeId fromId, NodeId toId)
          Returns a copy of the edge with new node IDs.
 boolean equals(Object obj)
           
 NodeId getFromId()
           
 NodeId getToId()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Edge

protected Edge(NodeId fromId,
               NodeId toId)
Method Detail

getFromId

public NodeId getFromId()

getToId

public NodeId getToId()

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

copy

public abstract Edge copy(NodeId fromId,
                          NodeId toId)
Returns a copy of the edge with new node IDs.

Parameters:
fromId - new ID of the 'from' node
toId - new ID of the 'to' node
Returns:
copy of the edge with the new node IDs


Copyright © 2006-2014 Google, Inc.. All Rights Reserved.