Record Class AreaData
java.lang.Object
java.lang.Record
app.valuationcontrol.multimodule.library.records.AreaData
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theareaDescriptionrecord component.@NotEmpty StringareaName()Returns the value of theareaNamerecord component.Returns the value of theareaOrderrecord 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.subAreas()Returns the value of thesubAreasrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AreaData
public AreaData(Long id, @NotEmpty @NotEmpty String areaName, String areaDescription, Integer areaOrder, List<SubAreaData> subAreas) Creates an instance of aAreaDatarecord class.- Parameters:
id- the value for theidrecord componentareaName- the value for theareaNamerecord componentareaDescription- the value for theareaDescriptionrecord componentareaOrder- the value for theareaOrderrecord componentsubAreas- the value for thesubAreasrecord 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
-
areaName
Returns the value of theareaNamerecord component.- Returns:
- the value of the
areaNamerecord component
-
areaDescription
Returns the value of theareaDescriptionrecord component.- Returns:
- the value of the
areaDescriptionrecord component
-
areaOrder
Returns the value of theareaOrderrecord component.- Returns:
- the value of the
areaOrderrecord component
-
subAreas
Returns the value of thesubAreasrecord component.- Returns:
- the value of the
subAreasrecord component
-