com.google.inject.grapher
Class BindingEdge

java.lang.Object
  extended by com.google.inject.grapher.Edge
      extended by com.google.inject.grapher.BindingEdge

public class BindingEdge
extends Edge

Edge that connects an interface to the type or instance that is bound to implement it.

Author:
phopkins@gmail.com (Pete Hopkins)

Nested Class Summary
static class BindingEdge.Type
          Classification for what kind of binding this edge represents.
 
Constructor Summary
BindingEdge(NodeId fromId, NodeId toId, BindingEdge.Type type)
           
 
Method Summary
 Edge copy(NodeId fromId, NodeId toId)
          Returns a copy of the edge with new node IDs.
 boolean equals(Object obj)
           
 BindingEdge.Type getType()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class com.google.inject.grapher.Edge
getFromId, getToId
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BindingEdge

public BindingEdge(NodeId fromId,
                   NodeId toId,
                   BindingEdge.Type type)
Method Detail

getType

public BindingEdge.Type getType()

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Edge

toString

public String toString()
Overrides:
toString in class Object

copy

public Edge copy(NodeId fromId,
                 NodeId toId)
Description copied from class: Edge
Returns a copy of the edge with new node IDs.

Specified by:
copy in class Edge
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.