Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Internet Explorer alert
This browser is not recommended for use with smartdevicelink.com, and may not function properly. Upgrade to a different browser to guarantee support of all features.
close alert
To Top Created with Sketch. To Top
To Bottom Created with Sketch. To Bottom
JavaEE Documentation
SdlDataTypeConverter

Class SdlDataTypeConverter

Hierarchy

java.lang.Object

Package
com.smartdevicelink.util

Overview

This is a utility class to aid in handling values stored in the RPC classes.

Constructors

SdlDataTypeConverter()

public SdlDataTypeConverter()

Methods

objectToDouble( Object originalValue )

Converts values that are retrieved from an RPC parameters Hashtable as an Object into the standard number value of the mobile API, Double.

public static java.lang.Double objectToDouble(Object originalValue)

Method Parameters

originalValue
The value retrieved from an RPC parameters Hashtable.

objectToFloat( Object originalValue )

Converts values that are retrieved from an RPC parameters Hashtable as an Object into the standard number value of the mobile API, Float.

public static java.lang.Float objectToFloat(Object originalValue)

Method Parameters

originalValue
The value retrieved from an RPC parameters Hashtable.

Inherited Methods

From Class Methods
java.lang.Object getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize
View on GitHub.com
Previous Section Next Section