Record Class ElementNode.JoinLink

java.lang.Object
java.lang.Record
org.aksw.jenax.graphql.sparql.v2.model.ElementNode.JoinLink
Enclosing class:
ElementNode

public static record ElementNode.JoinLink(ElementNode child, List<org.apache.jena.sparql.core.Var> parentVars, List<org.apache.jena.sparql.core.Var> childVars) extends Record
Which variables of the parent join with which variables of the child Could extend to List>Expr< or ExprList
  • Constructor Summary

    Constructors
    Constructor
    Description
    JoinLink(ElementNode child, List<org.apache.jena.sparql.core.Var> parentVars, List<org.apache.jena.sparql.core.Var> childVars)
    Creates an instance of a JoinLink record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the child record component.
    List<org.apache.jena.sparql.core.Var>
    Returns the value of the childVars record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    List<org.apache.jena.sparql.core.Var>
    Returns the value of the parentVars record component.
    int
     
    final String
    Avoid cycles in toString().

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • JoinLink

      public JoinLink(ElementNode child, List<org.apache.jena.sparql.core.Var> parentVars, List<org.apache.jena.sparql.core.Var> childVars)
      Creates an instance of a JoinLink record class.
      Parameters:
      child - the value for the child record component
      parentVars - the value for the parentVars record component
      childVars - the value for the childVars record component
  • Method Details

    • size

      public int size()
    • toString

      public final String toString()
      Avoid cycles in toString().
      Specified by:
      toString in class Record
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • child

      public ElementNode child()
      Returns the value of the child record component.
      Returns:
      the value of the child record component
    • parentVars

      public List<org.apache.jena.sparql.core.Var> parentVars()
      Returns the value of the parentVars record component.
      Returns:
      the value of the parentVars record component
    • childVars

      public List<org.apache.jena.sparql.core.Var> childVars()
      Returns the value of the childVars record component.
      Returns:
      the value of the childVars record component