Record Class CAStockRepositSerialMove
java.lang.Object
java.lang.Record
com.io7m.cardant.model.CAStockRepositSerialMove
- Record Components:
instance- The existing stock instancetoLocation- The target storage location
- All Implemented Interfaces:
CAStockRepositType
public record CAStockRepositSerialMove(CAStockInstanceID instance, CALocationID toLocation)
extends Record
implements CAStockRepositType
An operation that moves stock from one storage location to another.
-
Constructor Summary
ConstructorsConstructorDescriptionCAStockRepositSerialMove(CAStockInstanceID instance, CALocationID toLocation) An operation that moves stock from one storage location to another. -
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.instance()Returns the value of theinstancerecord component.Returns the value of thetoLocationrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CAStockRepositSerialMove
An operation that moves stock from one storage location to another.- Parameters:
instance- The existing stock instancetoLocation- The target storage location
-
-
Method Details
-
instance
Returns the value of theinstancerecord component.- Specified by:
instancein interfaceCAStockRepositType- Returns:
- the value of the
instancerecord component
-
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). -
toLocation
Returns the value of thetoLocationrecord component.- Returns:
- the value of the
toLocationrecord component
-