Record Class TransportOrderResponse
java.lang.Object
java.lang.Record
com.v1rex.liftnexus.transportorder.dto.TransportOrderResponse
public record TransportOrderResponse(Long id, String trackingCode, Long targetLoadUnitId, Long targetBinId, Long sourceBinId, EquipmentType requiredEquipment, TransportOrderStatus status, Long assignedForkliftId)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTransportOrderResponse(Long id, String trackingCode, Long targetLoadUnitId, Long targetBinId, Long sourceBinId, EquipmentType requiredEquipment, TransportOrderStatus status, Long assignedForkliftId) Creates an instance of aTransportOrderResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theassignedForkliftIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of therequiredEquipmentrecord component.Returns the value of thesourceBinIdrecord component.status()Returns the value of thestatusrecord component.Returns the value of thetargetBinIdrecord component.Returns the value of thetargetLoadUnitIdrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetrackingCoderecord component.
-
Constructor Details
-
TransportOrderResponse
public TransportOrderResponse(Long id, String trackingCode, Long targetLoadUnitId, Long targetBinId, Long sourceBinId, EquipmentType requiredEquipment, TransportOrderStatus status, Long assignedForkliftId) Creates an instance of aTransportOrderResponserecord class.- Parameters:
id- the value for theidrecord componenttrackingCode- the value for thetrackingCoderecord componenttargetLoadUnitId- the value for thetargetLoadUnitIdrecord componenttargetBinId- the value for thetargetBinIdrecord componentsourceBinId- the value for thesourceBinIdrecord componentrequiredEquipment- the value for therequiredEquipmentrecord componentstatus- the value for thestatusrecord componentassignedForkliftId- the value for theassignedForkliftIdrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
trackingCode
Returns the value of thetrackingCoderecord component.- Returns:
- the value of the
trackingCoderecord component
-
targetLoadUnitId
Returns the value of thetargetLoadUnitIdrecord component.- Returns:
- the value of the
targetLoadUnitIdrecord component
-
targetBinId
Returns the value of thetargetBinIdrecord component.- Returns:
- the value of the
targetBinIdrecord component
-
sourceBinId
Returns the value of thesourceBinIdrecord component.- Returns:
- the value of the
sourceBinIdrecord component
-
requiredEquipment
Returns the value of therequiredEquipmentrecord component.- Returns:
- the value of the
requiredEquipmentrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
assignedForkliftId
Returns the value of theassignedForkliftIdrecord component.- Returns:
- the value of the
assignedForkliftIdrecord component
-