Package graphql.util

Class Breadcrumb<T>

  • Type Parameters:
    T - the generic type of object

    @PublicApi
    public class Breadcrumb<T>
    extends java.lang.Object
    A specific NodeLocation inside a node. This means getNode() returns a Node which has a child at getLocation()

    A list of Breadcrumbs is used to identify the exact location of a specific node inside a tree.

    • Constructor Detail

      • Breadcrumb

        public Breadcrumb​(T node,
                          NodeLocation location)
    • Method Detail

      • getNode

        public T getNode()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object