Class Interpretation
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.compare_comply.v1.model.Interpretation
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class Interpretation
extends com.ibm.cloud.sdk.core.service.model.GenericModel
The details of the normalized text, if applicable. This element is optional; it is returned only
if normalized text exists.
-
Constructor Summary
Constructors Constructor Description Interpretation()
-
Method Summary
Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Constructor Details
-
Interpretation
public Interpretation()
-
-
Method Details
-
getValue
Gets the value.The value that was located in the normalized text.
- Returns:
- the value
-
getNumericValue
Gets the numericValue.An integer or float expressing the numeric value of the `value` key.
- Returns:
- the numericValue
-
getUnit
Gets the unit.A string listing the unit of the value that was found in the normalized text.
**Note:** The value of `unit` is the [ISO-4217 currency code](https://www.iso.org/iso-4217-currency-codes.html) identified for the currency amount (for example, `USD` or `EUR`). If the service cannot disambiguate a currency symbol (for example, `$` or `£`), the value of `unit` contains the ambiguous symbol as-is.
- Returns:
- the unit
-