Record Class CAStockOccurrenceSet
java.lang.Object
java.lang.Record
com.io7m.cardant.model.CAStockOccurrenceSet
- Record Components:
instance- The instancelocation- The locationitem- The itemcount- The item count
- All Implemented Interfaces:
CAStockOccurrenceType
public record CAStockOccurrenceSet(CAStockInstanceID instance, CALocationSummary location, CAItemSummary item, long count)
extends Record
implements CAStockOccurrenceType
An occurrence of a set of items in a location.
-
Constructor Summary
ConstructorsConstructorDescriptionCAStockOccurrenceSet(CAStockInstanceID instance, CALocationSummary location, CAItemSummary item, long count) An occurrence of a set of items in a location. -
Method Summary
Modifier and TypeMethodDescriptionlongcount()Returns the value of thecountrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.instance()Returns the value of theinstancerecord component.item()Returns the value of theitemrecord component.location()Returns the value of thelocationrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CAStockOccurrenceSet
public CAStockOccurrenceSet(CAStockInstanceID instance, CALocationSummary location, CAItemSummary item, long count) An occurrence of a set of items in a location.- Parameters:
instance- The instancelocation- The locationitem- The itemcount- The item count
-
-
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. -
instance
Returns the value of theinstancerecord component.- Specified by:
instancein interfaceCAStockOccurrenceType- Returns:
- the value of the
instancerecord component
-
location
Returns the value of thelocationrecord component.- Specified by:
locationin interfaceCAStockOccurrenceType- Returns:
- the value of the
locationrecord component
-
item
Returns the value of theitemrecord component.- Specified by:
itemin interfaceCAStockOccurrenceType- Returns:
- the value of the
itemrecord component
-
count
-