Record Class CAStockRepositSetAdd
java.lang.Object
java.lang.Record
com.io7m.cardant.model.CAStockRepositSetAdd
- Record Components:
instance- The instancecount- The item count
- All Implemented Interfaces:
CAStockRepositType
public record CAStockRepositSetAdd(CAStockInstanceID instance, long count)
extends Record
implements CAStockRepositType
An operation that adds a set of items to a storage location.
-
Constructor Summary
ConstructorsConstructorDescriptionCAStockRepositSetAdd(CAStockInstanceID instance, 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.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CAStockRepositSetAdd
An operation that adds a set of items to a storage location.- Parameters:
instance- The instancecount- 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
-
count
-