Record Class Role
java.lang.Object
java.lang.Record
fr.tiogars.domaintemplate.domains.auth.role.entities.Role
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull Stringcode()Returns the value of thecoderecord component.@NotNull InstantReturns the value of thecreatedDaterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull Longid()Returns the value of theidrecord component.@NotNull Stringlabel()Returns the value of thelabelrecord component.@NotNull InstantReturns the value of thelastModifiedDaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Role
public Role(@NotNull @NotNull Long id, @NotNull @NotNull String code, @NotNull @NotNull String label, @NotNull @NotNull Instant createdDate, @NotNull @NotNull Instant lastModifiedDate) Creates an instance of aRolerecord class.- Parameters:
id- the value for theidrecord componentcode- the value for thecoderecord componentlabel- the value for thelabelrecord 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
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
-
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
-