Record Class SearchField
java.lang.Object
java.lang.Record
nl.datasteel.crudcraft.codegen.writer.search.SearchField
public record SearchField(FieldDescriptor descriptor, String property, String path, SearchOperator operator)
extends Record
Holds field metadata together with the operator used for generating
predicates. The
property
value corresponds to the field name in the
generated search request object while path
contains the criteria API
path expression.-
Constructor Summary
ConstructorsConstructorDescriptionSearchField
(FieldDescriptor descriptor, String property, String path, SearchOperator operator) Creates an instance of aSearchField
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptor
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.operator()
Returns the value of theoperator
record component.path()
Returns the value of thepath
record component.property()
Returns the value of theproperty
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
SearchField
public SearchField(FieldDescriptor descriptor, String property, String path, SearchOperator operator) Creates an instance of aSearchField
record class.- Parameters:
descriptor
- the value for thedescriptor
record componentproperty
- the value for theproperty
record componentpath
- the value for thepath
record componentoperator
- the value for theoperator
record 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)
. -
descriptor
Returns the value of thedescriptor
record component.- Returns:
- the value of the
descriptor
record component
-
property
Returns the value of theproperty
record component.- Returns:
- the value of the
property
record component
-
path
Returns the value of thepath
record component.- Returns:
- the value of the
path
record component
-
operator
Returns the value of theoperator
record component.- Returns:
- the value of the
operator
record component
-