public static PhoneNumberOfflineGeocoder getInstance() { if (instance == null) { instance = new PhoneNumberOfflineGeocoder(MAPPING_DATA_DIRECTORY); } return(instance); }
/** * Gets a {@link PhoneNumberOfflineGeocoder} instance to carry out international phone number * geocoding. * * <p> The {@link PhoneNumberOfflineGeocoder} is implemented as a singleton. Therefore, calling * this method multiple times will only result in one instance being created. * * @return a {@link PhoneNumberOfflineGeocoder} instance */ public static PhoneNumberOfflineGeocoder getInstance() { lock (_syncRoot) { if (instance == null) { instance = new PhoneNumberOfflineGeocoder(MAPPING_DATA_DIRECTORY); } return instance; } }