Record Class SearchCriteriaDto
java.lang.Object
java.lang.Record
com.samupert.univpm.eurostat.filtering.SearchCriteriaDto
- Record Components:
operation
- The operation to be performed.Operator
criteriaList
- The list of criteria to be applied.LogicalSearchCriteria
fieldName
- The field name to be filtered.value
- The value to be filtered.
public record SearchCriteriaDto(String operation, SearchCriteriaDto[] criteriaList, String fieldName, Object value)
extends Record
Class that represents a search criteria.
-
Constructor Summary
ConstructorDescriptionSearchCriteriaDto
(String operation, SearchCriteriaDto[] criteriaList, String fieldName, Object value) Creates an instance of aSearchCriteriaDto
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecriteriaList
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of thefieldName
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of theoperation
record component.final String
toString()
Returns a string representation of this record class.value()
Returns the value of thevalue
record component.
-
Constructor Details
-
SearchCriteriaDto
public SearchCriteriaDto(@NonNull String operation, SearchCriteriaDto[] criteriaList, String fieldName, Object value) Creates an instance of aSearchCriteriaDto
record class.- Parameters:
operation
- the value for theoperation
record componentcriteriaList
- the value for thecriteriaList
record componentfieldName
- the value for thefieldName
record componentvalue
- the value for thevalue
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)
. -
operation
Returns the value of theoperation
record component.- Returns:
- the value of the
operation
record component
-
criteriaList
Returns the value of thecriteriaList
record component.- Returns:
- the value of the
criteriaList
record component
-
fieldName
Returns the value of thefieldName
record component.- Returns:
- the value of the
fieldName
record component
-
value
Returns the value of thevalue
record component.- Returns:
- the value of the
value
record component
-