Record Class TransportOrderRequest
java.lang.Object
java.lang.Record
com.v1rex.liftnexus.transportorder.dto.TransportOrderRequest
public record TransportOrderRequest(@NotNull Long targetLoadUnitId, @NotNull Long sourceBinId, @NotNull Long destinationBinId, EquipmentType requiredEquipment)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTransportOrderRequest(@NotNull Long targetLoadUnitId, @NotNull Long sourceBinId, @NotNull Long destinationBinId, EquipmentType requiredEquipment) Creates an instance of aTransportOrderRequestrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull LongReturns the value of thedestinationBinIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of therequiredEquipmentrecord component.@NotNull LongReturns the value of thesourceBinIdrecord component.@NotNull LongReturns the value of thetargetLoadUnitIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TransportOrderRequest
public TransportOrderRequest(@NotNull @NotNull Long targetLoadUnitId, @NotNull @NotNull Long sourceBinId, @NotNull @NotNull Long destinationBinId, EquipmentType requiredEquipment) Creates an instance of aTransportOrderRequestrecord class.- Parameters:
targetLoadUnitId- the value for thetargetLoadUnitIdrecord componentsourceBinId- the value for thesourceBinIdrecord componentdestinationBinId- the value for thedestinationBinIdrecord componentrequiredEquipment- the value for therequiredEquipmentrecord 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). -
targetLoadUnitId
Returns the value of thetargetLoadUnitIdrecord component.- Returns:
- the value of the
targetLoadUnitIdrecord component
-
sourceBinId
Returns the value of thesourceBinIdrecord component.- Returns:
- the value of the
sourceBinIdrecord component
-
destinationBinId
Returns the value of thedestinationBinIdrecord component.- Returns:
- the value of the
destinationBinIdrecord component
-
requiredEquipment
Returns the value of therequiredEquipmentrecord component.- Returns:
- the value of the
requiredEquipmentrecord component
-