public abstract class Formats<Type> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Formats.FormatsBOOLEAN |
static class |
Formats.FormatsCURRENCY |
static class |
Formats.FormatsDATE |
static class |
Formats.FormatsDOUBLE |
static class |
Formats.FormatsDOUBLE2
Format a Double to two decimals with US locale decimal separator and deliimiter
|
static class |
Formats.FormatsDOUBLE2Local
Format a Double to two decimals with localized decimal sepator and delimiter
|
static class |
Formats.FormatsDOUBLE3Local
Format a Double to three decimals with localized decimal sepator and delimiter.
|
static class |
Formats.FormatsHOURMIN |
static class |
Formats.FormatsINT |
static class |
Formats.FormatsPayment |
static class |
Formats.FormatsPERCENT |
static class |
Formats.FormatsPERCENT1 |
static class |
Formats.FormatsSTRING |
static class |
Formats.FormatsTIME |
static class |
Formats.FormatsTIMESTAMP |
Modifier and Type | Field and Description |
---|---|
static Formats.FormatsBOOLEAN |
BOOLEAN |
static Formats.FormatsCURRENCY |
CURRENCY |
static Formats.FormatsDATE |
DATE |
static Formats.FormatsDOUBLE |
DOUBLE |
static Formats.FormatsDOUBLE2 |
DOUBLE2 |
static Formats.FormatsDOUBLE2Local |
DOUBLE2_LOCAL |
static Formats.FormatsDOUBLE3Local |
DOUBLE3_LOCAL |
static Formats.FormatsHOURMIN |
HOURMIN |
static Formats.FormatsINT |
INT |
static Formats.FormatsPayment |
PAYMENT |
static Formats.FormatsPERCENT |
PERCENT |
static Formats.FormatsPERCENT1 |
PERCENT1 |
static Formats.FormatsSTRING |
STRING |
static Formats.FormatsTIME |
TIME |
static Formats.FormatsTIMESTAMP |
TIMESTAMP |
Modifier | Constructor and Description |
---|---|
protected |
Formats()
Creates a new instance of Formats
|
Modifier and Type | Method and Description |
---|---|
protected static NumberFormat |
euro() |
String |
formatValue(Type value) |
protected abstract String |
formatValueInt(Type value) |
abstract int |
getAlignment() |
Type |
parseValue(String value) |
Type |
parseValue(String value,
String defaultvalue) |
protected abstract Type |
parseValueInt(String value) |
public static final Formats.FormatsINT INT
public static final Formats.FormatsSTRING STRING
public static final Formats.FormatsDOUBLE DOUBLE
public static final Formats.FormatsDOUBLE2 DOUBLE2
public static final Formats.FormatsDOUBLE2Local DOUBLE2_LOCAL
public static final Formats.FormatsDOUBLE3Local DOUBLE3_LOCAL
public static final Formats.FormatsCURRENCY CURRENCY
public static final Formats.FormatsPERCENT PERCENT
public static final Formats.FormatsPERCENT1 PERCENT1
public static final Formats.FormatsBOOLEAN BOOLEAN
public static final Formats.FormatsTIMESTAMP TIMESTAMP
public static final Formats.FormatsDATE DATE
public static final Formats.FormatsTIME TIME
public static final Formats.FormatsHOURMIN HOURMIN
public static final Formats.FormatsPayment PAYMENT
public Type parseValue(String value) throws BasicException
BasicException
public Type parseValue(String value, String defaultvalue) throws BasicException
BasicException
protected static NumberFormat euro()
protected abstract Type parseValueInt(String value) throws ParseException
ParseException
public abstract int getAlignment()
Copyright © 2021. All rights reserved.