org.apache.tiles.request.locale

## Class LocaleUtil

- java.lang.Object
- - org.apache.tiles.request.locale.LocaleUtil

-     public final class LocaleUtil
      extends Object

  Utilities for locale manipulation.

- - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static Locale` | `getParentLocale(Locale locale)` Returns the "parent" locale of a given locale.

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

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

- - ### Method Detail

    - #### getParentLocale

          public static Locale getParentLocale(Locale locale)

      Returns the "parent" locale of a given locale. If the original locale is only language-based, the `Locale.ROOT` object is returned.

      Parameters:
        `locale` - The original locale.
      Returns:
        The parent locale.

Copyright © 2000–2024 Apache Software Foundation. All rights reserved.