All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.feinik.csv.annotation.CsvProperty Maven / Gradle / Ivy

The newest version!
package com.feinik.csv.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Use in model object field
 *
 * @author Feinik
 */
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
@Inherited
public @interface CsvProperty {

    /**
     * 列名称
     * @return value
     */
    String value();


    /**
     * 列索引
     * @return index
     */
    int index() default 99999;


    /**
     * format value with MessageFormat.format
     * @return format
     */
    String format() default "{0}";
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy