Record Class CJ1TypePackageSearchParameters
java.lang.Object
java.lang.Record
com.io7m.cardant.protocol.inventory.json.internal.CJ1TypePackageSearchParameters
- All Implemented Interfaces:
CJ1ValueType
@JsonClassDescription("Parameters to search for type packages.")
public record CJ1TypePackageSearchParameters(CJ1ComparisonFuzzyType<String> descriptionMatch, long pageSize)
extends Record
implements CJ1ValueType
-
Constructor Summary
ConstructorsConstructorDescriptionCJ1TypePackageSearchParameters(CJ1ComparisonFuzzyType<String> descriptionMatch, long pageSize) Creates an instance of aCJ1TypePackageSearchParametersrecord class. -
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.longpageSize()Returns the value of thepageSizerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CJ1TypePackageSearchParameters
public CJ1TypePackageSearchParameters(@JsonPropertyDescription("Include packages with descriptions matching the given expression.") CJ1ComparisonFuzzyType<String> descriptionMatch, @JsonPropertyDescription("The maximum number of results per page.") long pageSize) Creates an instance of aCJ1TypePackageSearchParametersrecord class.- Parameters:
descriptionMatch- the value for thedescriptionMatchrecord componentpageSize- the value for thepageSizerecord component
-
-
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. -
descriptionMatch
@JsonPropertyDescription("Include packages with descriptions matching the given expression.") public CJ1ComparisonFuzzyType<String> descriptionMatch()Returns the value of thedescriptionMatchrecord component.- Returns:
- the value of the
descriptionMatchrecord component
-
pageSize
@JsonPropertyDescription("The maximum number of results per page.") public long pageSize()Returns the value of thepageSizerecord component.- Returns:
- the value of the
pageSizerecord component
-