public final class GpsReceiverHelper extends Object
GpsReceiver and related types.| Modifier and Type | Method and Description |
|---|---|
static GpsReceiver |
getGpsReceiver(IServiceProvider provider)
Gets the
GpsReceiver from the IGpsReceiverService provided by an object. |
static GpsReceiver |
getGpsReceiver(IServiceProvider provider,
String exceptionMessage)
Gets the
GpsReceiver from the IGpsReceiverService provided by an object. |
static IGpsReceiverService |
getGpsReceiverService(IServiceProvider provider)
Gets the
IGpsReceiverService provided by an object. |
static IGpsReceiverService |
getGpsReceiverService(IServiceProvider provider,
String exceptionMessage)
Gets the
IGpsReceiverService provided by an object. |
static IGpsReceiverService |
getOptionalGpsReceiverService(IServiceProvider provider)
Gets the
IGpsReceiverService provided by an object, or null if the service does not exist. |
@Nonnull public static IGpsReceiverService getGpsReceiverService(@Nonnull IServiceProvider provider)
IGpsReceiverService provided by an object.provider - The object from which to obtain the service.ArgumentNullException - Thrown when provider is null.ServiceNotAvailableException - Thrown when provider does not provide IGpsReceiverService.@Nonnull public static IGpsReceiverService getGpsReceiverService(@Nonnull IServiceProvider provider, String exceptionMessage)
IGpsReceiverService provided by an object.provider - The object from which to obtain the service.exceptionMessage - An error message to include in the exception if the service is unavailable.ArgumentNullException - Thrown when provider is null.ServiceNotAvailableException - Thrown when provider does not provide IGpsReceiverService.@Nullable public static IGpsReceiverService getOptionalGpsReceiverService(@Nonnull IServiceProvider provider)
IGpsReceiverService provided by an object, or null if the service does not exist.provider - The object from which to obtain the service.null if the service does not exist.ArgumentNullException - Thrown when provider is null.public static GpsReceiver getGpsReceiver(@Nonnull IServiceProvider provider)
GpsReceiver from the IGpsReceiverService provided by an object.provider - The object from which to obtain the IGpsReceiverService service.GpsReceiver from the IGpsReceiverService.ArgumentNullException - Thrown when provider is null.ServiceNotAvailableException - Thrown when provider does not provide IGpsReceiverService.public static GpsReceiver getGpsReceiver(@Nonnull IServiceProvider provider, String exceptionMessage)
GpsReceiver from the IGpsReceiverService provided by an object.provider - The object from which to obtain the IGpsReceiverService service.exceptionMessage - An error message to include in the exception if the IGpsReceiverService service is unavailable.GpsReceiver from the IGpsReceiverService.ArgumentNullException - Thrown when provider is null.ServiceNotAvailableException - Thrown when provider does not provide IGpsReceiverService.