-
public final class UserPreferencesUser preferences.
-
-
Method Summary
Modifier and Type Method Description final UnitfillWith(UserPreferences userPref)Fill the current UserPreferences with the specified UserPreferences. final UnitrefreshWith(UserPreferences userPref)Refresh the current UserPreferences with the specified UserPreferences. final Stringcomponent1()final Stringcomponent2()final Stringcomponent3()final ZoneIdcomponent4()final Localecomponent5()final Stringcomponent6()final Stringcomponent7()final Booleancomponent8()final Localecomponent9()final UserPreferencescopy(String firstName, String lastName, String email, ZoneId timezone, Locale locale, String picture, String gender, Boolean test, Locale initialLocale)final StringgetFirstName()First name of the user. final StringgetLastName()Last name of the user. final StringgetEmail()Email of the user. final ZoneIdgetTimezone()Timezone of the user. final LocalegetLocale()Locale of the user. final StringgetPicture()Picture url of the user. final StringgetGender()Gender of the user. final BooleangetTest()Is it a test user? final LocalegetInitialLocale()The initial locale of the user final UnitsetFirstName(String firstName)First name of the user. final UnitsetLastName(String lastName)Last name of the user. final UnitsetEmail(String email)Email of the user. final UnitsetTimezone(ZoneId timezone)Timezone of the user. final UnitsetLocale(Locale locale)Locale of the user. final UnitsetPicture(String picture)Picture url of the user. final UnitsetGender(String gender)Gender of the user. final UnitsetTest(Boolean test)Is it a test user? final UnitsetInitialLocale(Locale initialLocale)The initial locale of the user -
-
Method Detail
-
fillWith
final Unit fillWith(UserPreferences userPref)
Fill the current UserPreferences with the specified UserPreferences.
-
refreshWith
final Unit refreshWith(UserPreferences userPref)
Refresh the current UserPreferences with the specified UserPreferences. Only not null values are taken into account.
-
component1
final String component1()
-
component2
final String component2()
-
component3
final String component3()
-
component4
final ZoneId component4()
-
component5
final Locale component5()
-
component6
final String component6()
-
component7
final String component7()
-
component8
final Boolean component8()
-
component9
final Locale component9()
-
copy
final UserPreferences copy(String firstName, String lastName, String email, ZoneId timezone, Locale locale, String picture, String gender, Boolean test, Locale initialLocale)
-
getFirstName
final String getFirstName()
First name of the user.
-
getLastName
final String getLastName()
Last name of the user.
-
getTimezone
final ZoneId getTimezone()
Timezone of the user.
-
getPicture
final String getPicture()
Picture url of the user.
-
getInitialLocale
final Locale getInitialLocale()
The initial locale of the user
-
setFirstName
final Unit setFirstName(String firstName)
First name of the user.
-
setLastName
final Unit setLastName(String lastName)
Last name of the user.
-
setTimezone
final Unit setTimezone(ZoneId timezone)
Timezone of the user.
-
setPicture
final Unit setPicture(String picture)
Picture url of the user.
-
setInitialLocale
final Unit setInitialLocale(Locale initialLocale)
The initial locale of the user
-
-
-
-