Record Class CAStockSearchParameters
java.lang.Object
java.lang.Record
com.io7m.cardant.model.CAStockSearchParameters
- Record Components:
locationMatch- The locations to includeitemMatch- The items to includeincludeOccurrences- The stock occurrences to includeincludeDeleted- Whether to include deleted itemspageSize- The page size
- All Implemented Interfaces:
CASearchParametersType
public record CAStockSearchParameters(CALocationMatchType locationMatch, CAComparisonExactType<CAItemID> itemMatch, Set<CAStockOccurrenceKind> includeOccurrences, CAIncludeDeleted includeDeleted, long pageSize)
extends Record
implements CASearchParametersType
The stock search parameters.
-
Constructor Summary
ConstructorsConstructorDescriptionCAStockSearchParameters(CALocationMatchType locationMatch, CAComparisonExactType<CAItemID> itemMatch, Set<CAStockOccurrenceKind> includeOccurrences, CAIncludeDeleted includeDeleted, long pageSize) The stock search parameters. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theincludeDeletedrecord component.Returns the value of theincludeOccurrencesrecord component.Returns the value of theitemMatchrecord component.Returns the value of thelocationMatchrecord component.longpageSize()Returns the value of thepageSizerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CAStockSearchParameters
public CAStockSearchParameters(CALocationMatchType locationMatch, CAComparisonExactType<CAItemID> itemMatch, Set<CAStockOccurrenceKind> includeOccurrences, CAIncludeDeleted includeDeleted, long pageSize) The stock search parameters.- Parameters:
locationMatch- The locations to includeitemMatch- The items to includeincludeOccurrences- The stock occurrences to includeincludeDeleted- Whether to include deleted itemspageSize- 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. -
locationMatch
Returns the value of thelocationMatchrecord component.- Returns:
- the value of the
locationMatchrecord component
-
itemMatch
-
includeOccurrences
Returns the value of theincludeOccurrencesrecord component.- Returns:
- the value of the
includeOccurrencesrecord component
-
includeDeleted
Returns the value of theincludeDeletedrecord component.- Returns:
- the value of the
includeDeletedrecord component
-
pageSize
public long pageSize()Returns the value of thepageSizerecord component.- Specified by:
pageSizein interfaceCASearchParametersType- Returns:
- the value of the
pageSizerecord component
-