public class UserPreferences
User preferences.
public UserPreferences(@Nullable
java.lang.String firstName,
@Nullable
java.lang.String lastName,
@Nullable
java.lang.String email,
@NotNull
java.time.ZoneId timezone,
@NotNull
java.util.Locale locale,
@Nullable
java.lang.String picture,
@Nullable
java.lang.String gender,
boolean test,
@NotNull
java.util.Locale initialLocale)
User preferences.
firstName - First name of the user.lastName - Last name of the user.email - Email of the user.timezone - Timezone of the user.locale - Locale of the user.picture - Picture url of the user.gender - Gender of the user.test - Is it a test user?initialLocale - The initial locale of the userpublic UserPreferences()
User preferences.
public void fillWith(@NotNull
UserPreferences userPref)
Fill the current class UserPreferences with the specified class UserPreferences.
class UserPreferences,
class UserPreferencespublic void refreshWith(@NotNull
UserPreferences userPref)
Refresh the current class UserPreferences with the specified class UserPreferences.
Only not null values are taken into account.
class UserPreferences,
class UserPreferences@Nullable public java.lang.String getFirstName()
First name of the user.
public void setFirstName(@Nullable
java.lang.String p)
First name of the user.
p - First name of the user.@Nullable public java.lang.String getLastName()
Last name of the user.
public void setLastName(@Nullable
java.lang.String p)
Last name of the user.
p - Last name of the user.@Nullable public java.lang.String getEmail()
Email of the user.
public void setEmail(@Nullable
java.lang.String p)
Email of the user.
p - Email of the user.@NotNull public java.time.ZoneId getTimezone()
Timezone of the user.
public void setTimezone(@NotNull
java.time.ZoneId p)
Timezone of the user.
p - Timezone of the user.@NotNull public java.util.Locale getLocale()
Locale of the user.
public void setLocale(@NotNull
java.util.Locale p)
Locale of the user.
p - Locale of the user.@Nullable public java.lang.String getPicture()
Picture url of the user.
public void setPicture(@Nullable
java.lang.String p)
Picture url of the user.
p - Picture url of the user.@Nullable public java.lang.String getGender()
Gender of the user.
public void setGender(@Nullable
java.lang.String p)
Gender of the user.
p - Gender of the user.public boolean getTest()
Is it a test user?
public void setTest(boolean p)
Is it a test user?
p - Is it a test user?@NotNull public java.util.Locale getInitialLocale()
The initial locale of the user
public void setInitialLocale(@NotNull
java.util.Locale p)
The initial locale of the user
p - The initial locale of the user@Nullable public java.lang.String component1()
First name of the user.
@Nullable public java.lang.String component2()
Last name of the user.
@Nullable public java.lang.String component3()
Email of the user.
@NotNull public java.time.ZoneId component4()
Timezone of the user.
@NotNull public java.util.Locale component5()
Locale of the user.
@Nullable public java.lang.String component6()
Picture url of the user.
@Nullable public java.lang.String component7()
Gender of the user.
public boolean component8()
Is it a test user?
@NotNull public java.util.Locale component9()
The initial locale of the user
@NotNull public UserPreferences copy(@Nullable java.lang.String firstName, @Nullable java.lang.String lastName, @Nullable java.lang.String email, @NotNull java.time.ZoneId timezone, @NotNull java.util.Locale locale, @Nullable java.lang.String picture, @Nullable java.lang.String gender, boolean test, @NotNull java.util.Locale initialLocale)
User preferences.
@NotNull public java.lang.String toString()
User preferences.
public int hashCode()
User preferences.
public boolean equals(@Nullable
java.lang.Object p)
User preferences.