Class

ac.FloatDataType

Data-type for floating point numbers.

Summary

Constructors
ac.FloatDataType(value)
Methods
compareTo(other)
equals(other)
fromDouble(value)
getFloat()
getValue()
toString()

Constructor detail

ac.FloatDataType(value)

Constructs a new, immutable ac.FloatDataType with the given value.

Parameters

* value (numeric) the value this ac.FloatDataType represents.

Method detail

compareTo(other)

Compares this ac.FloatDataType to another.

Parameters

* other (ac.FloatDataType) the other ac.FloatDataType to compare to this one.

Returns

* the value 0 if value is numerically equal to the other's value, a value less than 0 if value is numerically less than other's value and a value greater than 0 if value is numerically greater than other's value.

equals(other)

Checks whether this ac.FloatDataType is equal to another.

Parameters

* other (ac.FloatDataType) the other ac.FloatDataType to compare to this one.

Returns

* boolean value

fromDouble(value)

Returns a new instance of ac.FloatDataType created from the given value.

Parameters

* value (numeric) the value to create the new ac.FloatDataType from.

Returns

* the new ac.FloatDataType.

getFloat()

Returns the {@link #value} wrapped by this FloatDataType as a float.

Returns

* the value as a float (numeric value)

getValue()

Returns the value wrapped by this ac.FloatDataType.

Returns

* the value as a double.

toString()

Returns the wrapped date of this ac.FloatDataType as a String.

Returns

* the wrapped date as a String.