package com.pqs9000.pojo.responsibility;


import java.io.Serializable;
import java.util.Date;

/**
 * 历史谐波数据实体
 * @author hongawen
 * @Date: 2019/3/29 10:03
 */
public class Responsibility implements Serializable,Comparable<Responsibility>{

    private Date time;

    private Float value;

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public Float getValue() {
        return value;
    }

    public void setValue(Float value) {
        this.value = value;
    }

    @Override
    public String toString() {
        return "Responsibility{" +
                "time=" + time +
                ", value=" + value +
                '}';
    }

    @Override
    public int compareTo(Responsibility o) {
        if(time.getTime()>o.getTime().getTime()){
            return 1;
        }else if(time.getTime()==o.getTime().getTime()){

        }
        return -1;
    }
}
