Record Class CAFileSearchParameters
java.lang.Object
java.lang.Record
com.io7m.cardant.model.CAFileSearchParameters
- Record Components:
description- The description querymediaType- The media type querysizeRange- The range of file sizes to considerordering- The ordering specificationpageSize- The page size
- All Implemented Interfaces:
CASearchParametersType
public record CAFileSearchParameters(CAComparisonFuzzyType<String> description, CAComparisonFuzzyType<String> mediaType, CASizeRange sizeRange, CAFileColumnOrdering ordering, long pageSize)
extends Record
implements CASearchParametersType
The immutable parameters required to search for files.
-
Constructor Summary
ConstructorsConstructorDescriptionCAFileSearchParameters(CAComparisonFuzzyType<String> description, CAComparisonFuzzyType<String> mediaType, CASizeRange sizeRange, CAFileColumnOrdering ordering, long pageSize) The immutable parameters required to search for files. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord 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 themediaTyperecord component.ordering()Returns the value of theorderingrecord component.longpageSize()Returns the value of thepageSizerecord component.Returns the value of thesizeRangerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CAFileSearchParameters
public CAFileSearchParameters(CAComparisonFuzzyType<String> description, CAComparisonFuzzyType<String> mediaType, CASizeRange sizeRange, CAFileColumnOrdering ordering, long pageSize) The immutable parameters required to search for files.- Parameters:
description- The description querymediaType- The media type querysizeRange- The range of file sizes to considerordering- 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. -
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
mediaType
-
sizeRange
-
ordering
-
pageSize
public long pageSize()Returns the value of thepageSizerecord component.- Specified by:
pageSizein interfaceCASearchParametersType- Returns:
- the value of the
pageSizerecord component
-