Record Class DomainTemplate
java.lang.Object
java.lang.Record
fr.tiogars.template.client.DomainTemplate
- Record Components:
id- persistent identifiercode- unique template codelabel- display labeldescription- optional descriptioncreatedDate- creation timestamplastModifiedDate- last modification timestamp
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncode()Returns the value of thecoderecord component.Returns the value of thecreatedDaterecord component.Returns the value of thedescriptionrecord 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.label()Returns the value of thelabelrecord component.Returns the value of thelastModifiedDaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DomainTemplate
public DomainTemplate(Long id, String code, String label, String description, Instant createdDate, Instant lastModifiedDate) Creates an instance of aDomainTemplaterecord 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 component
-
-
Method Details
-
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
-
code
-
label
-
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
-