Record Class CAItemSearchParameters
java.lang.Object
java.lang.Record
com.io7m.cardant.model.CAItemSearchParameters
- Record Components:
nameMatch- The name match expressiondescriptionMatch- The description match expressiontypeMatch- The type match expressionmetadataMatch- The metadata match expressionincludeDeleted- Whether to include deleted dataordering- The ordering specificationpageSize- The page size
- All Implemented Interfaces:
CASearchParametersType
public record CAItemSearchParameters(CAComparisonFuzzyType<String> nameMatch, CAComparisonFuzzyType<String> descriptionMatch, CAComparisonSetType<CATypeRecordIdentifier> typeMatch, CAMetadataElementMatchType metadataMatch, CAIncludeDeleted includeDeleted, CAItemColumnOrdering ordering, long pageSize)
extends Record
implements CASearchParametersType
The immutable parameters required to search items.
-
Constructor Summary
ConstructorsConstructorDescriptionCAItemSearchParameters(CAComparisonFuzzyType<String> nameMatch, CAComparisonFuzzyType<String> descriptionMatch, CAComparisonSetType<CATypeRecordIdentifier> typeMatch, CAMetadataElementMatchType metadataMatch, CAIncludeDeleted includeDeleted, CAItemColumnOrdering ordering, long pageSize) The immutable parameters required to search items. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionMatchrecord 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 theincludeDeletedrecord component.Returns the value of themetadataMatchrecord component.Returns the value of thenameMatchrecord component.ordering()Returns the value of theorderingrecord component.longpageSize()Returns the value of thepageSizerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetypeMatchrecord component.
-
Constructor Details
-
CAItemSearchParameters
public CAItemSearchParameters(CAComparisonFuzzyType<String> nameMatch, CAComparisonFuzzyType<String> descriptionMatch, CAComparisonSetType<CATypeRecordIdentifier> typeMatch, CAMetadataElementMatchType metadataMatch, CAIncludeDeleted includeDeleted, CAItemColumnOrdering ordering, long pageSize) The immutable parameters required to search items.- Parameters:
nameMatch- The name match expressiondescriptionMatch- The description match expressiontypeMatch- The type match expressionmetadataMatch- The metadata match expressionincludeDeleted- Whether to include deleted dataordering- The ordering specificationpageSize- The page size
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
nameMatch
-
descriptionMatch
Returns the value of thedescriptionMatchrecord component.- Returns:
- the value of the
descriptionMatchrecord component
-
typeMatch
-
metadataMatch
Returns the value of themetadataMatchrecord component.- Returns:
- the value of the
metadataMatchrecord component
-
includeDeleted
Returns the value of theincludeDeletedrecord component.- Returns:
- the value of the
includeDeletedrecord component
-
ordering
-
pageSize
public long pageSize()Returns the value of thepageSizerecord component.- Specified by:
pageSizein interfaceCASearchParametersType- Returns:
- the value of the
pageSizerecord component
-