@Documented @Retention(value=RUNTIME) @Target(value=FIELD) public @interface CsvBindByPosition
Modifier and Type | Required Element and Description |
---|---|
int |
position
The column position in the input that is used to fill the annotated
field.
|
public abstract int position
public abstract boolean required
public abstract String locale
If not specified, the current default locale is used. The locale must be
one recognized by Locale
. Locale conversion is supported
for the following data types:
Byte
Float
Double
Integer
Long
Short
BigDecimal
BigInteger
CsvDate
The locale must be in a format accepted by
Locale.forLanguageTag(java.lang.String)
Caution must be exercized with the default locale, for the default locale for numerical types does not mean the locale of the running program, such as en-US or de-DE, but rather no locale. Numbers will be parsed more or less the way the Java compiler would parse them. That means, for instance, that thousands separators in long numbers are not permitted, even if the locale of the running program would accept them. When dealing with locale-sensitive data, it is always best to specify the locale explicitly.
Copyright © 2017. All rights reserved.