Record Class CAStockRepositSetIntroduce
java.lang.Object
java.lang.Record
com.io7m.cardant.model.CAStockRepositSetIntroduce
- Record Components:
instance- The stock instanceitem- The itemlocation- The storage locationcount- The item count
- All Implemented Interfaces:
CAStockRepositType
public record CAStockRepositSetIntroduce(CAStockInstanceID instance, CAItemID item, CALocationID location, long count)
extends Record
implements CAStockRepositType
An operation that adds a set of items to a storage location.
-
Constructor Summary
ConstructorsConstructorDescriptionCAStockRepositSetIntroduce(CAStockInstanceID instance, CAItemID item, CALocationID location, long count) An operation that adds a set of items to a storage 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
-
CAStockRepositSetIntroduce
public CAStockRepositSetIntroduce(CAStockInstanceID instance, CAItemID item, CALocationID location, long count) An operation that adds a set of items to a storage location.- Parameters:
instance- The stock instanceitem- The itemlocation- The storage locationcount- 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 interfaceCAStockRepositType- Returns:
- the value of the
instancerecord component
-
item
-
location
-
count
-