Package com.v1rex.liftnexus.forklift.dto
Record Class ForkliftResponse
java.lang.Object
java.lang.Record
com.v1rex.liftnexus.forklift.dto.ForkliftResponse
-
Constructor Summary
ConstructorsConstructorDescriptionForkliftResponse(Long id, String fleetNumber, Long forkliftTypeId, String modelName, EquipmentType equipmentType, Integer maxCapacityKg, Long currentStorageBinId, OperationalStatus status, Double currentBatteryPercentage, List<Long> transportOrderIds) Creates an instance of aForkliftResponserecord 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.Returns the value of theequipmentTyperecord component.Returns the value of thefleetNumberrecord component.Returns the value of theforkliftTypeIdrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of themaxCapacityKgrecord component.Returns the value of themodelNamerecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetransportOrderIdsrecord component.
-
Constructor Details
-
ForkliftResponse
public ForkliftResponse(Long id, String fleetNumber, Long forkliftTypeId, String modelName, EquipmentType equipmentType, Integer maxCapacityKg, Long currentStorageBinId, OperationalStatus status, Double currentBatteryPercentage, List<Long> transportOrderIds) Creates an instance of aForkliftResponserecord class.- Parameters:
id- the value for theidrecord componentfleetNumber- the value for thefleetNumberrecord componentforkliftTypeId- the value for theforkliftTypeIdrecord componentmodelName- the value for themodelNamerecord componentequipmentType- the value for theequipmentTyperecord componentmaxCapacityKg- the value for themaxCapacityKgrecord componentcurrentStorageBinId- the value for thecurrentStorageBinIdrecord componentstatus- the value for thestatusrecord componentcurrentBatteryPercentage- the value for thecurrentBatteryPercentagerecord componenttransportOrderIds- the value for thetransportOrderIdsrecord 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
-
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
-
modelName
Returns the value of themodelNamerecord component.- Returns:
- the value of the
modelNamerecord component
-
equipmentType
Returns the value of theequipmentTyperecord component.- Returns:
- the value of the
equipmentTyperecord component
-
maxCapacityKg
Returns the value of themaxCapacityKgrecord component.- Returns:
- the value of the
maxCapacityKgrecord 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
-
transportOrderIds
Returns the value of thetransportOrderIdsrecord component.- Returns:
- the value of the
transportOrderIdsrecord component
-