Record Class Nomenclature
java.lang.Object
java.lang.Record
fr.tiogars.chat.domains.nomenclature.models.Nomenclature
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncode()Returns the value of thecoderecord component.Returns the value of thecreatedByrecord component.Returns the value of thecreatedDaterecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.static Nomenclaturefrom(NomenclatureEntity entity) final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.label()Returns the value of thelabelrecord component.Returns the value of thelastModifiedByrecord component.Returns the value of thelastModifiedDaterecord component.parentId()Returns the value of theparentIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Nomenclature
public Nomenclature(Long id, String code, String label, String description, Instant createdDate, Instant lastModifiedDate, String createdBy, String lastModifiedBy, Long parentId) Creates an instance of aNomenclaturerecord class.- Parameters:
id- the value for theidrecord componentcode- the value for thecoderecord componentlabel- the value for thelabelrecord componentdescription- the value for thedescriptionrecord componentcreatedDate- the value for thecreatedDaterecord componentlastModifiedDate- the value for thelastModifiedDaterecord componentcreatedBy- the value for thecreatedByrecord componentlastModifiedBy- the value for thelastModifiedByrecord componentparentId- the value for theparentIdrecord component
-
-
Method Details
-
from
-
toString
-
hashCode
-
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
-
code
Returns the value of thecoderecord component.- Returns:
- the value of the
coderecord component
-
label
Returns the value of thelabelrecord component.- Returns:
- the value of the
labelrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
createdDate
Returns the value of thecreatedDaterecord component.- Returns:
- the value of the
createdDaterecord component
-
lastModifiedDate
Returns the value of thelastModifiedDaterecord component.- Returns:
- the value of the
lastModifiedDaterecord component
-
createdBy
Returns the value of thecreatedByrecord component.- Returns:
- the value of the
createdByrecord component
-
lastModifiedBy
Returns the value of thelastModifiedByrecord component.- Returns:
- the value of the
lastModifiedByrecord component
-
parentId
Returns the value of theparentIdrecord component.- Returns:
- the value of the
parentIdrecord component
-