Class Money

Superclasses :
util::Error
lang::Object
Package :
util

This class represents monetary units efficiently stored as integers.

Source

Class summary
Methods inherited from util::Error
error(a) get_reason()
Variables inherited from util::Error
reason
Methods inherited from lang::Object
clone(seen) equals(other, seen) get_class() get_class_name() get_id() hash_code(depth, seen) is_instance(name)
Methods defined in this class
get_units() parse(s) set_units(n) to_right_string(w) to_string()
Variables defined in this class
units

Method detail

get_units()

Get the base representation, which is an integer
Source

parse(s)

Set the value from a string.
Source

set_units(n)

Set the base representation
Source

to_right_string(w)

Return a right justified string representation.
Parameters :
w - The field width (default 9).
Source

to_string()

Overrides to_string(depth, seen) in lang::Object
Return a string representation
Source

Variable detail

units