/** * 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 (ThisLock) { return(instance ?? (instance = new PhoneNumberOfflineGeocoder(MAPPING_DATA_DIRECTORY))); } }
/** * 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 (thisLock) { 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 (thisLock) { if (instance == null) { instance = new PhoneNumberOfflineGeocoder(MAPPING_DATA_DIRECTORY); } return instance; } }