Record Class SubAreaData
java.lang.Object
java.lang.Record
app.valuationcontrol.multimodule.library.records.SubAreaData
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal 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.booleanReturns the value of themodelledAtSegmentrecord component.Returns the value of theparentAreaIdrecord component.Returns the value of thesubAreaDescriptionrecord component.@NotEmpty StringReturns the value of thesubAreaNamerecord component.Returns the value of thesubAreaOrderrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SubAreaData
public SubAreaData(Long id, @NotEmpty @NotEmpty String subAreaName, String subAreaDescription, boolean modelledAtSegment, Integer subAreaOrder, Long parentAreaId) Creates an instance of aSubAreaDatarecord class.- Parameters:
id- the value for theidrecord componentsubAreaName- the value for thesubAreaNamerecord componentsubAreaDescription- the value for thesubAreaDescriptionrecord componentmodelledAtSegment- the value for themodelledAtSegmentrecord componentsubAreaOrder- the value for thesubAreaOrderrecord componentparentAreaId- the value for theparentAreaIdrecord 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
-
subAreaName
Returns the value of thesubAreaNamerecord component.- Returns:
- the value of the
subAreaNamerecord component
-
subAreaDescription
Returns the value of thesubAreaDescriptionrecord component.- Returns:
- the value of the
subAreaDescriptionrecord component
-
modelledAtSegment
public boolean modelledAtSegment()Returns the value of themodelledAtSegmentrecord component.- Returns:
- the value of the
modelledAtSegmentrecord component
-
subAreaOrder
Returns the value of thesubAreaOrderrecord component.- Returns:
- the value of the
subAreaOrderrecord component
-
parentAreaId
Returns the value of theparentAreaIdrecord component.- Returns:
- the value of the
parentAreaIdrecord component
-