Package icyllis.modernui.core

# 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 Summary

  Constructors
  Constructor
  Description
  `LocaleList(Locale... list)`
  Creates a new `LocaleList`.

- ## Method Summary

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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`.