private synchronized LocaleDisplayNames getLocaleDisplayNames ( ) { LocaleDisplayNames locNames = null ; if ( _localeDisplayNamesRef != null ) { locNames = _localeDisplayNamesRef . get ( ) ; } if ( locNames == null ) { locNames = LocaleDisplayNames . getInstance ( _locale ) ; _localeDisplayNamesRef = new WeakReference < LocaleDisplayNames > ( locNames ) ; } return locNames ; }
Private method returning LocaleDisplayNames instance for the locale of this instance . Because LocaleDisplayNames is only used for generic location formant and partial location format the LocaleDisplayNames is instantiated lazily .