Record Class StorageBinResponse
java.lang.Object
java.lang.Record
com.v1rex.liftnexus.storagebin.dto.StorageBinResponse
-
Constructor Summary
ConstructorsConstructorDescriptionStorageBinResponse(Long id, String binCode, CoordinateDto coordinate, ZoneType zoneType, Integer maxWeightCapacityKg) Creates an instance of aStorageBinResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionbinCode()Returns the value of thebinCoderecord component.Returns the value of thecoordinaterecord 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 themaxWeightCapacityKgrecord component.final StringtoString()Returns a string representation of this record class.zoneType()Returns the value of thezoneTyperecord component.
-
Constructor Details
-
StorageBinResponse
public StorageBinResponse(Long id, String binCode, CoordinateDto coordinate, ZoneType zoneType, Integer maxWeightCapacityKg) Creates an instance of aStorageBinResponserecord class.- Parameters:
id- the value for theidrecord componentbinCode- the value for thebinCoderecord componentcoordinate- the value for thecoordinaterecord componentzoneType- the value for thezoneTyperecord componentmaxWeightCapacityKg- the value for themaxWeightCapacityKgrecord 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
-
binCode
Returns the value of thebinCoderecord component.- Returns:
- the value of the
binCoderecord component
-
coordinate
Returns the value of thecoordinaterecord component.- Returns:
- the value of the
coordinaterecord component
-
zoneType
Returns the value of thezoneTyperecord component.- Returns:
- the value of the
zoneTyperecord component
-
maxWeightCapacityKg
Returns the value of themaxWeightCapacityKgrecord component.- Returns:
- the value of the
maxWeightCapacityKgrecord component
-