Package 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

  Modifier and Type
  Method
  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 Details

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