Singleton
caplin.element.formatter

SnapshotMaturityDateFormatter

Formats a number into a string by adding date information. It evaluates the number "0.5" to the string "6m" or the number "2" to "2 year"

Constructor Summary

Attributes Name and Description
caplin.element.formatter.SnapshotMaturityDateFormatter()

Method Summary

Attributes Name and Description
String format(vValue vValue, Map mAttributes)

Formats a number into a string by adding date information.

Constructor Detail

caplin.element.formatter.SnapshotMaturityDateFormatter()

Method Detail

String format(vValue vValue, Map mAttributes)

Formats a number into a string by adding date information.

Parameters
vValue vValue the number to format.
Map mAttributes the map of attributes, unused.
Returns
the number, formatted by adding "m" for month values (values between 0 and 1) or " year" for year values.