예제 #1
0
 /**
  * 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)));
     }
 }
예제 #2
0
 /**
  * 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;
     }
 }