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

internal.sdmxdl.cli.ext.CsvColumn Maven / Gradle / Ivy

package internal.sdmxdl.cli.ext;

import nbbrd.io.text.Formatter;
import nbbrd.picocsv.Csv;

import java.io.IOException;

@lombok.Value
public class CsvColumn {

    @lombok.NonNull
    String name;

    @lombok.NonNull
    Formatter formatter;

    void writeName(Csv.Writer writer) throws IOException {
        writer.writeField(name);
    }

    void writeValue(Csv.Writer writer, T item) throws IOException {
        writer.writeField(formatter.format(item));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy