public class GxExpressionBytesFormatter
extends GxExpressionNumbersFormatter
The class defines a grid expression to format bytes to one of the following measuring terms : ['KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB']
Modifier and Type | Field and Description |
---|---|
BBjNumber | Decimals! Number of decimal to use when parsing the size. default is 2 |
Constructor and Description |
---|
GxExpressionBytesFormatter(BBjString mask!) Construct a new GxExpressionNumbersFormatter |
GxExpressionBytesFormatter(BBjString mask!, BBjString groupSeparator!) Construct a new GxExpressionNumbersFormatter |
GxExpressionBytesFormatter(BBjString mask!, BBjString groupSeparator!, BBjString decimalSeparator!) Construct a new GxExpressionNumbersFormatter |
Modifier and Type | Method and Description |
---|---|
String | toString() {@inheritDoc} |
public BBjNumber Decimals!
Number of decimal to use when parsing the size. default is 2
public GxExpressionBytesFormatter(BBjString mask!)
Construct a new GxExpressionNumbersFormatter
BBjString
mask! The number's maskpublic GxExpressionBytesFormatter(BBjString mask!, BBjString groupSeparator!)
Construct a new GxExpressionNumbersFormatter
BBjString
mask! The number's maskBBjString
groupSeparator! The number's group separator to usepublic GxExpressionBytesFormatter(BBjString mask!, BBjString groupSeparator!, BBjString decimalSeparator!)
Construct a new GxExpressionNumbersFormatter
BBjString
mask! The number's maskBBjString
groupSeparator! The number's group separator to useBBjString
decimalSeparator! The number's decimal separator to use