Record Class UserSettings
java.lang.Object
java.lang.Record
fr.tiogars.inception.settings.user.entities.UserSettings
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns 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.Returns the value of thelastModifiedDaterecord component.roleCode()Returns the value of theroleCoderecord component.final StringtoString()Returns a string representation of this record class.userId()Returns the value of theuserIdrecord component.@NotNull StringviewMode()Returns the value of theviewModerecord component.
-
Constructor Details
-
UserSettings
public UserSettings(Long userId, String roleCode, @NotNull @NotNull String viewMode, Instant createdDate, Instant lastModifiedDate) Creates an instance of aUserSettingsrecord class.- Parameters:
userId- the value for theuserIdrecord componentroleCode- the value for theroleCoderecord componentviewMode- the value for theviewModerecord 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). -
userId
Returns the value of theuserIdrecord component.- Returns:
- the value of the
userIdrecord component
-
roleCode
Returns the value of theroleCoderecord component.- Returns:
- the value of the
roleCoderecord component
-
viewMode
Returns the value of theviewModerecord component.- Returns:
- the value of the
viewModerecord 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
-