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 specificNodeLocationinside 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 booleanequals(java.lang.Object o)NodeLocationgetLocation()TgetNode()inthashCode()java.lang.StringtoString()
-
-
-
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-