Record Class ConditionDirective
java.lang.Object
java.lang.Record
org.aksw.jenax.graphql.sparql.v2.context.ConditionDirective
public record ConditionDirective(String whenExprStr, String byExprStr, List<String> thisVars, List<String> parentVars)
extends Record
Expression by which to filter the parent resources.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebyExprStrrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theparentVarsrecord component.thisVars()Returns the value of thethisVarsrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thewhenExprStrrecord component.
-
Constructor Details
-
ConditionDirective
public ConditionDirective(String whenExprStr, String byExprStr, List<String> thisVars, List<String> parentVars) Creates an instance of aConditionDirectiverecord class.- Parameters:
whenExprStr- the value for thewhenExprStrrecord componentbyExprStr- the value for thebyExprStrrecord componentthisVars- the value for thethisVarsrecord componentparentVars- the value for theparentVarsrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
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. -
equals
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 withObjects::equals(Object,Object). -
whenExprStr
Returns the value of thewhenExprStrrecord component.- Returns:
- the value of the
whenExprStrrecord component
-
byExprStr
Returns the value of thebyExprStrrecord component.- Returns:
- the value of the
byExprStrrecord component
-
thisVars
Returns the value of thethisVarsrecord component.- Returns:
- the value of the
thisVarsrecord component
-
parentVars
Returns the value of theparentVarsrecord component.- Returns:
- the value of the
parentVarsrecord component
-