|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.icu.util.LocalePriorityList.Builder
public static class LocalePriorityList.Builder
Class used for building LanguagePriorityLists
Method Summary | |
---|---|
LocalePriorityList.Builder |
add(LocalePriorityList languagePriorityList)
Adds a LocalePriorityList |
LocalePriorityList.Builder |
add(String acceptLanguageList)
Adds rfc2616 list. |
LocalePriorityList.Builder |
add(ULocale... languageCodes)
Adds language codes, with each having weight = 1.0. |
LocalePriorityList.Builder |
add(ULocale languageCode)
Adds a new language code, with weight = 1.0. |
LocalePriorityList.Builder |
add(ULocale languageCode,
double weight)
Adds a new supported languageCode, with specified weight. |
LocalePriorityList |
build()
Creates a LocalePriorityList. |
LocalePriorityList |
build(boolean preserveWeights)
Creates a LocalePriorityList. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public LocalePriorityList build()
Builder.build(false)
.
public LocalePriorityList build(boolean preserveWeights)
preserveWeights
- when true, the weights originally came
from a language priority list specified by add() are preserved.
public LocalePriorityList.Builder add(LocalePriorityList languagePriorityList)
languagePriorityList
- a LocalePriorityList
public LocalePriorityList.Builder add(ULocale languageCode)
languageCode
- to add with weight 1.0
public LocalePriorityList.Builder add(ULocale... languageCodes)
languageCodes
- List of language codes.
public LocalePriorityList.Builder add(ULocale languageCode, double weight)
languageCode
- language/locale to addweight
- value between 0.0 and 1.1
public LocalePriorityList.Builder add(String acceptLanguageList)
acceptLanguageList
- in rfc2616 format
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |