O'Reilly logo

Mastering Java 11 - Second Edition by Dr. Edward Lavieri

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The nested class

There is one nested class associated with the ResourceBundle class, that is the ResourceBundle.Control class. It provides callback methods that are used when the ResourceBundle.getBundle method is used, shown as follows:

public static class ResourceBundle.Control extends Object

The ResourceBundle.Control class has the following fields:

  • public static final List<String> FORMAT_CLASS
  • public static final List<String> FORMAT_DEFAULT
  • public static final List<String> FORMAT_PROPERTIES
  • public static final long TTL_DONT_CACHE
  • public static final long TTL_NO_EXPIRATION_CONTROL

The class has a single, empty constructor and the following methods:

  • getCandidateLocales():
public List<Locale> getCandidateLocales(String baseName, Locale ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required