Record Class CATypeScalarSearchParameters
java.lang.Object
java.lang.Record
com.io7m.cardant.model.CATypeScalarSearchParameters
- Record Components:
nameQuery- The search querydescriptionQuery- The description search querypageSize- The page size
- All Implemented Interfaces:
CASearchParametersType
public record CATypeScalarSearchParameters(CAComparisonFuzzyType<String> nameQuery, CAComparisonFuzzyType<String> descriptionQuery, long pageSize)
extends Record
implements CASearchParametersType
The immutable parameters required to search scalar types.
-
Constructor Summary
ConstructorsConstructorDescriptionCATypeScalarSearchParameters(CAComparisonFuzzyType<String> nameQuery, CAComparisonFuzzyType<String> descriptionQuery, long pageSize) The immutable parameters required to search scalar types. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionQueryrecord 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 thenameQueryrecord component.longpageSize()Returns the value of thepageSizerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CATypeScalarSearchParameters
public CATypeScalarSearchParameters(CAComparisonFuzzyType<String> nameQuery, CAComparisonFuzzyType<String> descriptionQuery, long pageSize) The immutable parameters required to search scalar types.- Parameters:
nameQuery- The search querydescriptionQuery- The description search querypageSize- 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. -
nameQuery
-
descriptionQuery
Returns the value of thedescriptionQueryrecord component.- Returns:
- the value of the
descriptionQueryrecord component
-
pageSize
public long pageSize()Returns the value of thepageSizerecord component.- Specified by:
pageSizein interfaceCASearchParametersType- Returns:
- the value of the
pageSizerecord component
-