public class Locales extends Object
Immutable bean describing localisation preferences.
Two separate sources of information about localisation are available:
getClientPreference()
)getUserPreferences()
)Constructor and Description |
---|
Locales(List<Locale> userPreferences,
Locale clientPreference) |
Modifier and Type | Method and Description |
---|---|
Locale |
getClientPreference()
Gets the locale preferred by the client.
|
List<Locale> |
getUserPreferences()
Gets the list of locales preferred by the user.
|
public Locale getClientPreference()
getUserPreferences()
public List<Locale> getUserPreferences()
getUserPreferences()
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.