Package graphql.util
Class Breadcrumb<T>
- java.lang.Object
-
- graphql.util.Breadcrumb<T>
-
- Type Parameters:
T
- the generic type of object
@PublicApi public class Breadcrumb<T> extends java.lang.Object
A specificNodeLocation
inside a node. This meansgetNode()
returns a Node which has a child atgetLocation()
A list of Breadcrumbs is used to identify the exact location of a specific node inside a tree.
-
-
Constructor Summary
Constructors Constructor Description Breadcrumb(T node, NodeLocation location)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
NodeLocation
getLocation()
T
getNode()
int
hashCode()
java.lang.String
toString()
-
-
-
Constructor Detail
-
Breadcrumb
public Breadcrumb(T node, NodeLocation location)
-
-
Method Detail
-
getNode
public T getNode()
-
getLocation
public NodeLocation getLocation()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-