de.vc.util

## Class LocaleToolkit

- java.lang.Object
- - de.vc.util.LocaleToolkit

-     public class LocaleToolkit
      extends java.lang.Object

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `LocaleToolkit()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static java.util.Locale` | `lcid2locale(int lcid, java.util.Locale defLocale)` Maps a LocalID (LCID) to a Locale.
    `static java.util.Locale` | `parseLocale(java.lang.String lcv)` Parses a locale from a String (complementary to `Locale.toString()`).
    `static void` | `sortByDisplayName(java.util.Locale[] locale)`

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

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

- - ### Constructor Detail

    - #### LocaleToolkit

          public LocaleToolkit()

  - ### Method Detail

    - #### sortByDisplayName

          public static void sortByDisplayName(java.util.Locale[] locale)

    - #### parseLocale

          public static java.util.Locale parseLocale(java.lang.String lcv)

      Parses a locale from a String (complementary to `Locale.toString()`).
      Parameters:
        `lcv` - lang[_country[_variant]].
      Returns:
        Locale
      See Also:
        `Locale.toString()`

    - #### lcid2locale

          public static java.util.Locale lcid2locale(int lcid,
                                     java.util.Locale defLocale)

      Maps a LocalID (LCID) to a Locale.
      Parameters:
        `lcid` - Local ID.
        `defLocale` - Locale that is returned if lcid is unknown.
      Returns:
        Locale

© 2003-2011 by Sascha Schmidt (vision-cloud.de). All Rights Reserved.