Package graphql.relay

Class DefaultEdge<T>

java.lang.Object
graphql.relay.DefaultEdge<T>
All Implemented Interfaces:
Edge<T>

@PublicApi public class DefaultEdge<T> extends Object implements Edge<T>
  • Constructor Details

  • Method Details

    • getNode

      public T getNode()
      Specified by:
      getNode in interface Edge<T>
      Returns:
      the node of data that this edge represents
    • getCursor

      public ConnectionCursor getCursor()
      Specified by:
      getCursor in interface Edge<T>
      Returns:
      the cursor for this edge node
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object