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