@Documented @Retention(value=RUNTIME) @Target(value=FIELD) public @interface CsvNumber
CsvBindByName,
CsvBindByPosition, etc.), it is used for the conversion. The
following types are supported:
ByteDoubleFloatIntegerLongShortBigDecimalBigInteger| Modifier and Type | Required Element and Description |
|---|---|
String |
value
A decimal format string.
|
| Modifier and Type | Optional Element and Description |
|---|---|
String |
writeFormat
A number format string.
|
boolean |
writeFormatEqualsReadFormat
Whether or not the same format string is used for writing as for reading.
|
public abstract String value
DecimalFormat. The locale is gleaned from one of the
other CSV-related annotations if present there, or failing that, is the
default locale for the JVM. If your code might run under different
locales, you are strongly encouraged to always specify a locale for
conversions, otherwise your code will behave unpredictably.public abstract boolean writeFormatEqualsReadFormat
value() is used for both reading and writing
and writeFormat() is ignored.public abstract String writeFormat
value(),
writeFormatEqualsReadFormat()Copyright © 2019. All rights reserved.