Package com.google.inject.grapher
Class NodeId
- java.lang.Object
-
- com.google.inject.grapher.NodeId
-
public final class NodeId extends Object
ID of a node in the graph. An ID is given by aKey
and a node type, which is used to distinguish instances and implementation classes for the same key. For examplebind(Integer.class).toInstance(42)
produces two nodes: an interface node with the key ofKey<Integer>
and an instance node with the sameKey
and value of 42.- Since:
- 4.0
- Author:
- bojand@google.com (Bojan Djordjevic)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NodeId.NodeType
Type of node.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
com.google.inject.Key<?>
getKey()
int
hashCode()
static NodeId
newInstanceId(com.google.inject.Key<?> key)
static NodeId
newTypeId(com.google.inject.Key<?> key)
String
toString()
-