Class LocaleList

java.lang.Object
icyllis.modernui.core.LocaleList

public final class LocaleList extends Object
LocaleList is an immutable list of Locales, typically used to keep an ordered list of user preferences for locales.
  • Constructor Details

    • LocaleList

      public LocaleList(@NonNull Locale... list)
      Creates a new LocaleList.

      If two or more same locales are passed, the repeated locales will be dropped.

      For empty lists of Locale items it is better to use

      invalid reference
      #getEmptyLocaleList()
      , which returns a pre-constructed empty list.

      Throws:
      NullPointerException - if any of the input locales is null.