删除supercsv中的十进制值

删除supercsv中的十进制值,supercsv,Supercsv,我有以下方法 private static CellProcessor[] getProcessors() { final CellProcessor[] processors = new CellProcessor[] { new NotNull(), // senderId new NotNull(), // orderId new NotNull(), // execQuantity

我有以下方法

private static CellProcessor[] getProcessors() {

    final CellProcessor[] processors = new CellProcessor[] { 
            new NotNull(), // senderId
            new NotNull(), // orderId
            new NotNull(), // execQuantity
            new NotNull(), // execPrice <~~~~~~~~~~~~
            new NotNull(new FmtDate("yyyy-MM-dd")), // deliveryDate
    };

    return processors;
}
专用静态CellProcessor[]getProcessors(){
最终CellProcessor[]处理器=新CellProcessor[]{
新建NotNull(),//senderId
新建NotNull(),//orderId
new NotNull(),//execQuantity
new NotNull(),//execPrice
私有静态CellProcessor[]getProcessors(){
DecimalFormat df=新的DecimalFormat();
df.applyPattern(“#”);
最终CellProcessor[]处理器=新CellProcessor[]{
新建NotNull(),//senderId
新建NotNull(),//orderId
new NotNull(),//execQuantity
new NotNull(new ParseDouble(new FmtNumber(df)),//execPrice
private static CellProcessor[] getProcessors() {

    DecimalFormat df = new DecimalFormat();
    df.applyPattern("#");

    final CellProcessor[] processors = new CellProcessor[] { 
            new NotNull(), // senderId
            new NotNull(), // orderId
            new NotNull(), // execQuantity
            new NotNull(new ParseDouble(new FmtNumber(df))), // execPrice <~~~~~~
            new NotNull(new FmtDate("yyyy-MM-dd")), // deliveryDate
    };

    return processors;
}