Locale.Category

  • Locale.Category is an enum used to manage default locales for specific functionalities.

  • It provides categories like DISPLAY for user interfaces and FORMAT for date and number formatting.

  • You can get and set the default locale for these categories using Locale.getDefault(Locale.Category) and Locale.setDefault(Locale.Category, Locale).

  • Locale.Category inherits methods from Enum, Object, and Comparable for various operations.

public static final enum Locale.Category extends Enum<Locale.Category>

Enum for locale categories. These locale categories are used to get/set the default locale for the specific functionality represented by the category.

Inherited Method Summary

Enum Values

public static final Locale.Category DISPLAY

Category used to represent the default locale for displaying user interfaces.

public static final Locale.Category FORMAT

Category used to represent the default locale for formatting dates, numbers, and/or currencies.