package link.at17.mid.tushare.data.models;

import java.time.LocalDateTime;

import link.at17.mid.tushare.enums.BuyOrSell;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 交易点
 * @author Barry
 *
 */
@Data
@Accessors(chain=true)
public class ExchangePoint<T> implements Comparable<ExchangePoint<?>> {
    
    private BuyOrSell buyOrSell;
    private LocalDateTime exchangeDate;
    private Boolean used = false;
    
    @Override
    public int compareTo(ExchangePoint<?> o) {
        return exchangeDate.compareTo(o.getExchangeDate());
    }
    
}
