public final class NodeId extends Object
Key
and a node type, which is used to
distinguish instances and implementation classes for the same key. For example
bind(Integer.class).toInstance(42)
produces two nodes: an interface node with the key of
Key<Integer>
and an instance node with the same Key
and value of 42.Modifier and Type | Class | Description |
---|---|---|
static class |
NodeId.NodeType |
Type of node.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(Object obj) |
|
Key<?> |
getKey() |
|
int |
hashCode() |
|
static NodeId |
newInstanceId(Key<?> key) |
|
static NodeId |
newTypeId(Key<?> key) |
|
String |
toString() |
public Key<?> getKey()
Copyright © 2006–2018 Google, Inc.. All rights reserved.