Package com.io7m.cardant.model
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
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 '=='. -
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
mediaType
Returns the value of themediaTyperecord component.- Returns:
- the value of the
mediaTyperecord component
-
sizeRange
Returns the value of thesizeRangerecord component.- Returns:
- the value of the
sizeRangerecord 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
-