Package com.v1rex.liftnexus.loadunit.dto
Record Class LoadUnitResponse
java.lang.Object
java.lang.Record
com.v1rex.liftnexus.loadunit.dto.LoadUnitResponse
-
Constructor Summary
ConstructorsConstructorDescriptionLoadUnitResponse(Long id, String trackingCode, int weightKg, LoadUnitStatus status, Long currentStorageBinId, Long version) Creates an instance of aLoadUnitResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecurrentStorageBinIdrecord 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.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetrackingCoderecord component.version()Returns the value of theversionrecord component.intweightKg()Returns the value of theweightKgrecord component.
-
Constructor Details
-
LoadUnitResponse
public LoadUnitResponse(Long id, String trackingCode, int weightKg, LoadUnitStatus status, Long currentStorageBinId, Long version) Creates an instance of aLoadUnitResponserecord class.- Parameters:
id- the value for theidrecord componenttrackingCode- the value for thetrackingCoderecord componentweightKg- the value for theweightKgrecord componentstatus- the value for thestatusrecord componentcurrentStorageBinId- the value for thecurrentStorageBinIdrecord componentversion- the value for theversionrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
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
-
weightKg
public int weightKg()Returns the value of theweightKgrecord component.- Returns:
- the value of the
weightKgrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
currentStorageBinId
Returns the value of thecurrentStorageBinIdrecord component.- Returns:
- the value of the
currentStorageBinIdrecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-