Package io.meeds.social.portlet.model
Record Class StoredSettings
java.lang.Object
java.lang.Record
io.meeds.social.portlet.model.StoredSettings
public record StoredSettings(Map<String,Object> headerTranslations, boolean showHiddenSubspaces, int subspacesLimit)
extends Record
The three preferences as they are stored, echoed to the widget so that a
save can be confirmed against them.
-
Constructor Summary
ConstructorsConstructorDescriptionStoredSettings(Map<String, Object> headerTranslations, boolean showHiddenSubspaces, int subspacesLimit) Creates an instance of aStoredSettingsrecord 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.Returns the value of theheaderTranslationsrecord component.booleanReturns the value of theshowHiddenSubspacesrecord component.intReturns the value of thesubspacesLimitrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StoredSettings
public StoredSettings(Map<String, Object> headerTranslations, boolean showHiddenSubspaces, int subspacesLimit) Creates an instance of aStoredSettingsrecord class.- Parameters:
headerTranslations- the value for theheaderTranslationsrecord componentshowHiddenSubspaces- the value for theshowHiddenSubspacesrecord componentsubspacesLimit- the value for thesubspacesLimitrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
headerTranslations
Returns the value of theheaderTranslationsrecord component.- Returns:
- the value of the
headerTranslationsrecord component
-
showHiddenSubspaces
public boolean showHiddenSubspaces()Returns the value of theshowHiddenSubspacesrecord component.- Returns:
- the value of the
showHiddenSubspacesrecord component
-
subspacesLimit
public int subspacesLimit()Returns the value of thesubspacesLimitrecord component.- Returns:
- the value of the
subspacesLimitrecord component
-