public final class

NodeId

extends Object
java.lang.Object
   ↳ com.google.inject.grapher.NodeId

Class Overview

ID of a node in the graph. An ID is given by a 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.

Summary

Nested Classes
enum NodeId.NodeType Type of node. 
Public Methods
boolean equals(Object obj)
Key<?> getKey()
int hashCode()
static NodeId newInstanceId(Key<?> key)
static NodeId newTypeId(Key<?> key)
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public boolean equals (Object obj)

Since: API Level

public Key<?> getKey ()

public int hashCode ()

Since: API Level

public static NodeId newInstanceId (Key<?> key)

public static NodeId newTypeId (Key<?> key)

public String toString ()

Since: API Level