Record Class ViewParameters<NativeQueryType>
java.lang.Object
java.lang.Record
fr.inria.rules.integraal.views.view.ViewParameters<NativeQueryType>
- Type Parameters:
NativeQueryType- the type used to represent the native query- Record Components:
nativeQuery- the native queryviewElements- the elements of the viewposition- iff this is the parameters of a json view, represents the position JSONPath query
public record ViewParameters<NativeQueryType>(NativeQueryType nativeQuery, List<ViewParameterSignature> viewElements, Optional<String> position)
extends Record
Parameters used to build a view.
- Author:
- Florent Tornil
-
Constructor Summary
ConstructorsConstructorDescriptionViewParameters(NativeQueryType nativeQuery, List<ViewParameterSignature> viewElements, Optional<String> position) Creates an instance of aViewParametersrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thenativeQueryrecord component.position()Returns the value of thepositionrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theviewElementsrecord component.
-
Constructor Details
-
ViewParameters
public ViewParameters(NativeQueryType nativeQuery, List<ViewParameterSignature> viewElements, Optional<String> position) Creates an instance of aViewParametersrecord class.- Parameters:
nativeQuery- the value for thenativeQueryrecord componentviewElements- the value for theviewElementsrecord componentposition- the value for thepositionrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
nativeQuery
Returns the value of thenativeQueryrecord component.- Returns:
- the value of the
nativeQueryrecord component
-
viewElements
Returns the value of theviewElementsrecord component.- Returns:
- the value of the
viewElementsrecord component
-
position
-