Release 3.6.1.0

E18813-01

`#include <coherence/lang/Integer16.hpp>`

Inherits Primitive< int16_t >, Number, and Comparable.

## Public Types | |||||||

typedef spec::Handle | Handle | ||||||

Integer16 Handle definition. | |||||||

typedef spec::View | View | ||||||

Integer16 View definition. | |||||||

typedef spec::Holder | Holder | ||||||

Integer16 Holder definition. | |||||||

## Public Member Functions | |||||||

virtual int16_t | getInt16Value () const | ||||||

Return the numeric value of this object as an int16_t. This may involve rounding or truncation.
**Returns:**- the numeric value of this object as an int16_t
| |||||||

virtual int32_t | getInt32Value () const | ||||||

Return the numeric value of this object as an int32_t. This may involve rounding or truncation.
**Returns:**- the numeric value of this object as an int32_t
| |||||||

virtual int64_t | getInt64Value () const | ||||||

Return the numeric value of this object as an int64_t. This may involve rounding or truncation.
**Returns:**- the numeric value of this object as an int64_t
| |||||||

virtual float32_t | getFloat32Value () const | ||||||

Return the numeric value of this object as a float32_t. This may involve rounding.
**Returns:**- the numeric value of this object as a float32_t
| |||||||

virtual float64_t | getFloat64Value () const | ||||||

Return the numeric value of this object as a float64_t. This may involve rounding.
**Returns:**- the numeric value of this object as a float64_t
| |||||||

virtual int32_t | compareTo (Object::View v) const | ||||||

Compare this object with the specified object for order. Return a negative integer, zero, or a positive integer if this object is less than, equal to, or greater than the specified object.
It is strongly recommended, but
**Parameters:**-
*v*the Object to be compared
**Returns:**- a negative integer, zero, or a positive integer if this object is less than, equal to, or greater than the specified object
**Exceptions:**-
*ClassCastException*if the specified Object's type prevents it from being compared to this Object
| |||||||

## Static Public Member Functions | |||||||

static Handle | valueOf (int16_t n) | ||||||

Factory method to produce Integer16 objects with an optimization that uses cached objects for all relatively-low numbers. | |||||||

## Static Public Attributes | |||||||

static const int16_t | MIN_VALUE | ||||||

A constant for the minimum representable value. | |||||||

static const int16_t | MAX_VALUE | ||||||

A constant for the maximum representable value. |

static Handle valueOf | ( | int16_t | n |
) | ` [static]` |

The documentation for this class was generated from the following file:

- coherence/lang/Integer16.hpp