me.landmesser.simplecsv.annotation.CSVDateFormat Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of simplecsv Show documentation
Show all versions of simplecsv Show documentation
Module that allows exporting Java beans into CSV format. Configuration
can be done via annotations. Under the hood, apache commons csv is used for writing
package me.landmesser.simplecsv.annotation;
import me.landmesser.simplecsv.CSVWriter;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Tells the {@link CSVWriter} to use the given format for a any
* date or date/time format derived from {@link java.time.temporal.TemporalAccessor}
* implementing a method format()
for conversion to String, and
* parse()
for parsing a String back into a date.
*
*
* For the formatting syntax see {@link java.time.format.DateTimeFormatter}
*
*/
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface CSVDateFormat {
String value();
}