com.google.inject.grapher
Class Node

java.lang.Object
  extended by com.google.inject.grapher.Node
Direct Known Subclasses:
ImplementationNode, InstanceNode, InterfaceNode

public abstract class Node
extends Object

Node in a guice dependency graph.

Author:
bojand@google.com (Bojan Djordjevic)

Constructor Summary
protected Node(NodeId id, Object source)
           
 
Method Summary
abstract  Node copy(NodeId id)
          Returns a copy of the node with a new ID.
 boolean equals(Object obj)
           
 NodeId getId()
           
 Object getSource()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Node

protected Node(NodeId id,
               Object source)
Method Detail

getId

public NodeId getId()

getSource

public Object getSource()

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

copy

public abstract Node copy(NodeId id)
Returns a copy of the node with a new ID.

Parameters:
id - new ID of the node
Returns:
copy of the node with a new ID


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