Record Class UpdateUserSettingsRequest
java.lang.Object
java.lang.Record
fr.tiogars.inception.settings.user.models.UpdateUserSettingsRequest
-
Constructor Summary
ConstructorsConstructorDescriptionUpdateUserSettingsRequest(@NotNull @Pattern(regexp="light|dark|system") String viewMode) Creates an instance of aUpdateUserSettingsRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.@NotNull @Pattern(regexp="light|dark|system") StringviewMode()Returns the value of theviewModerecord component.
-
Constructor Details
-
UpdateUserSettingsRequest
public UpdateUserSettingsRequest(@NotNull @Pattern(regexp="light|dark|system") @NotNull @Pattern(regexp="light|dark|system") String viewMode) Creates an instance of aUpdateUserSettingsRequestrecord class.- Parameters:
viewMode- the value for theviewModerecord 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). -
viewMode
@NotNull @Pattern(regexp="light|dark|system") public @NotNull @Pattern(regexp="light|dark|system") String viewMode()Returns the value of theviewModerecord component.- Returns:
- the value of the
viewModerecord component
-