Package com.v1rex.liftnexus.forklift.dto
Record Class ForkliftRequest
java.lang.Object
java.lang.Record
com.v1rex.liftnexus.forklift.dto.ForkliftRequest
-
Constructor Summary
ConstructorsConstructorDescriptionForkliftRequest(@NotBlank String fleetNumber, @NotNull Long forkliftTypeId, Long currentStorageBinId, OperationalStatus status, Double currentBatteryPercentage) Creates an instance of aForkliftRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecurrentBatteryPercentagerecord component.Returns the value of thecurrentStorageBinIdrecord component.final booleanIndicates whether some other object is "equal to" this one.@NotBlank StringReturns the value of thefleetNumberrecord component.@NotNull LongReturns the value of theforkliftTypeIdrecord component.final inthashCode()Returns a hash code value for this object.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ForkliftRequest
public ForkliftRequest(@NotBlank @NotBlank String fleetNumber, @NotNull @NotNull Long forkliftTypeId, Long currentStorageBinId, OperationalStatus status, Double currentBatteryPercentage) Creates an instance of aForkliftRequestrecord class.- Parameters:
fleetNumber- the value for thefleetNumberrecord componentforkliftTypeId- the value for theforkliftTypeIdrecord componentcurrentStorageBinId- the value for thecurrentStorageBinIdrecord componentstatus- the value for thestatusrecord componentcurrentBatteryPercentage- the value for thecurrentBatteryPercentagerecord 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). -
fleetNumber
Returns the value of thefleetNumberrecord component.- Returns:
- the value of the
fleetNumberrecord component
-
forkliftTypeId
Returns the value of theforkliftTypeIdrecord component.- Returns:
- the value of the
forkliftTypeIdrecord component
-
currentStorageBinId
Returns the value of thecurrentStorageBinIdrecord component.- Returns:
- the value of the
currentStorageBinIdrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
currentBatteryPercentage
Returns the value of thecurrentBatteryPercentagerecord component.- Returns:
- the value of the
currentBatteryPercentagerecord component
-