Record Class CJ1StockSearchParameters
java.lang.Object
java.lang.Record
com.io7m.cardant.protocol.inventory.json.internal.CJ1StockSearchParameters
- All Implemented Interfaces:
CJ1ValueType
@JsonClassDescription("Parameters to search for stock.")
public record CJ1StockSearchParameters(CJ1LocationMatchType locationMatch, CJ1ComparisonExactType<UUID> itemMatch, Set<CJ1StockOccurrenceKind> includeOccurrences, CJ1IncludeDeleted includeDeleted, CJ1UnsignedLong pageSize)
extends Record
implements CJ1ValueType
-
Constructor Summary
ConstructorsConstructorDescriptionCJ1StockSearchParameters(CJ1LocationMatchType locationMatch, CJ1ComparisonExactType<UUID> itemMatch, Set<CJ1StockOccurrenceKind> includeOccurrences, CJ1IncludeDeleted includeDeleted, CJ1UnsignedLong pageSize) Creates an instance of aCJ1StockSearchParametersrecord class. -
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.pageSize()Returns the value of thepageSizerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CJ1StockSearchParameters
public CJ1StockSearchParameters(@JsonPropertyDescription("Include stock with locations matching the given expression.") CJ1LocationMatchType locationMatch, @JsonPropertyDescription("Include stock with items matching the given expression.") CJ1ComparisonExactType<UUID> itemMatch, @JsonPropertyDescription("Include stock of the given occurrence kinds.") Set<CJ1StockOccurrenceKind> includeOccurrences, @JsonPropertyDescription("Include deleted stock.") CJ1IncludeDeleted includeDeleted, @JsonPropertyDescription("The maximum number of results per page.") CJ1UnsignedLong pageSize) Creates an instance of aCJ1StockSearchParametersrecord class.- Parameters:
locationMatch- the value for thelocationMatchrecord componentitemMatch- the value for theitemMatchrecord componentincludeOccurrences- the value for theincludeOccurrencesrecord componentincludeDeleted- the value for theincludeDeletedrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
locationMatch
@JsonPropertyDescription("Include stock with locations matching the given expression.") public CJ1LocationMatchType locationMatch()Returns the value of thelocationMatchrecord component.- Returns:
- the value of the
locationMatchrecord component
-
itemMatch
@JsonPropertyDescription("Include stock with items matching the given expression.") public CJ1ComparisonExactType<UUID> itemMatch()Returns the value of theitemMatchrecord component.- Returns:
- the value of the
itemMatchrecord component
-
includeOccurrences
@JsonPropertyDescription("Include stock of the given occurrence kinds.") public Set<CJ1StockOccurrenceKind> 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
@JsonPropertyDescription("The maximum number of results per page.") public CJ1UnsignedLong pageSize()Returns the value of thepageSizerecord component.- Returns:
- the value of the
pageSizerecord component
-