Package com.io7m.cardant.model
Record Class CAItemSearchParameters
java.lang.Object
java.lang.Record
com.io7m.cardant.model.CAItemSearchParameters
- Record Components:
locationMatch- The item location search behaviournameMatch- The name match expressiondescriptionMatch- The description match expressiontypeMatch- The type match expressionserialMatch- The serial number match expressionmetadataMatch- The metadata match expressionordering- The ordering specificationpageSize- The page size
- All Implemented Interfaces:
CASearchParametersType
public record CAItemSearchParameters(CAItemLocationMatchType locationMatch, CAComparisonFuzzyType<String> nameMatch, CAComparisonFuzzyType<String> descriptionMatch, CAComparisonSetType<com.io7m.lanark.core.RDottedName> typeMatch, CAComparisonExactType<CAItemSerial> serialMatch, CAMetadataElementMatchType metadataMatch, CAItemColumnOrdering ordering, long pageSize)
extends Record
implements CASearchParametersType
The immutable parameters required to search items.
-
Constructor Summary
ConstructorsConstructorDescriptionCAItemSearchParameters(CAItemLocationMatchType locationMatch, CAComparisonFuzzyType<String> nameMatch, CAComparisonFuzzyType<String> descriptionMatch, CAComparisonSetType<com.io7m.lanark.core.RDottedName> typeMatch, CAComparisonExactType<CAItemSerial> serialMatch, CAMetadataElementMatchType metadataMatch, 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 thelocationMatchrecord 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.Returns the value of theserialMatchrecord component.final StringtoString()Returns a string representation of this record class.CAComparisonSetType<com.io7m.lanark.core.RDottedName> Returns the value of thetypeMatchrecord component.
-
Constructor Details
-
CAItemSearchParameters
public CAItemSearchParameters(CAItemLocationMatchType locationMatch, CAComparisonFuzzyType<String> nameMatch, CAComparisonFuzzyType<String> descriptionMatch, CAComparisonSetType<com.io7m.lanark.core.RDottedName> typeMatch, CAComparisonExactType<CAItemSerial> serialMatch, CAMetadataElementMatchType metadataMatch, CAItemColumnOrdering ordering, long pageSize) The immutable parameters required to search items.- Parameters:
locationMatch- The location match expressionnameMatch- The name match expressiondescriptionMatch- The description match expressiontypeMatch- The type match expressionserialMatch- The serial number match expressionmetadataMatch- The metadata match expressionordering- The ordering specificationpageSize- The page size
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
locationMatch
Returns the value of thelocationMatchrecord component.- Returns:
- the value of the
locationMatchrecord component
-
nameMatch
Returns the value of thenameMatchrecord component.- Returns:
- the value of the
nameMatchrecord component
-
descriptionMatch
Returns the value of thedescriptionMatchrecord component.- Returns:
- the value of the
descriptionMatchrecord component
-
typeMatch
Returns the value of thetypeMatchrecord component.- Returns:
- the value of the
typeMatchrecord component
-
serialMatch
Returns the value of theserialMatchrecord component.- Returns:
- the value of the
serialMatchrecord component
-
metadataMatch
Returns the value of themetadataMatchrecord component.- Returns:
- the value of the
metadataMatchrecord component
-
ordering
Returns the value of theorderingrecord component.- Returns:
- the value of the
orderingrecord component
-
pageSize
public long pageSize()Returns the value of thepageSizerecord component.- Specified by:
pageSizein interfaceCASearchParametersType- Returns:
- the value of the
pageSizerecord component
-