Record Class SearchCriteriaDto
java.lang.Object
java.lang.Record
com.samupert.univpm.eurostat.filtering.SearchCriteriaDto
- Record Components:
operation- The operation to be performed.OperatorcriteriaList- The list of criteria to be applied.LogicalSearchCriteriafieldName- 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
ConstructorsConstructorDescriptionSearchCriteriaDto(String operation, SearchCriteriaDto[] criteriaList, String fieldName, Object value) Creates an instance of aSearchCriteriaDtorecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecriteriaListrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefieldNamerecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theoperationrecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
SearchCriteriaDto
public SearchCriteriaDto(@NonNull String operation, SearchCriteriaDto[] criteriaList, String fieldName, Object value) Creates an instance of aSearchCriteriaDtorecord class.- Parameters:
operation- the value for theoperationrecord componentcriteriaList- the value for thecriteriaListrecord componentfieldName- the value for thefieldNamerecord componentvalue- the value for thevaluerecord 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 theoperationrecord component.- Returns:
- the value of the
operationrecord component
-
criteriaList
Returns the value of thecriteriaListrecord component.- Returns:
- the value of the
criteriaListrecord component
-
fieldName
Returns the value of thefieldNamerecord component.- Returns:
- the value of the
fieldNamerecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-