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

com.feinik.csv.metadata.CsvColumnProperty Maven / Gradle / Ivy

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

/**
 *
 *
 * @author Feinik
 */
public class CsvColumnProperty implements Comparable {

    private String content;

    private String head;

    private int index = 999;

    private String format;

    public String getHead() {
        return head;
    }

    public void setHead(String head) {
        this.head = head;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    public String getFormat() {
        return format;
    }

    public void setFormat(String format) {
        this.format = format;
    }

    @Override
    public int compareTo(CsvColumnProperty o) {
        int x = this.index;
        int y = o.getIndex();
        return (x < y) ? -1 : ((x == y) ? 0 : 1);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy