package safeluck.drive.evaluation.bean;
|
|
import com.anyun.basecommonlib.MyLog;
|
|
import safeluck.drive.evaluation.util.Utils;
|
|
/**
|
* MyApplication2
|
* Created by lzw on 2019/3/19. 14:17:11
|
* 邮箱:632393724@qq.com
|
* All Rights Saved! Chongqing AnYun Tech co. LTD
|
*/
|
public class ScoreBean implements Comparable<ScoreBean>{
|
/**扣分分数*/
|
private float mScore;
|
/**扣分项目*/
|
private String mItem;
|
/**扣分原因*/
|
private String reason;
|
|
private long mUtc;
|
|
|
public ScoreBean(float mScore, String mItem, String reason) {
|
this.mScore = mScore;
|
this.mItem = mItem;
|
this.reason = reason;
|
}
|
public ScoreBean(float mScore, String mItem, String reason,String utc) {
|
this.mScore = mScore;
|
this.mItem = mItem;
|
this.reason = reason;
|
if (Utils.isDigital(utc)){
|
|
mUtc = Utils.dateToLongSec(utc);
|
|
}else{
|
MyLog.i("utc时间不是纯数字"+utc);
|
|
}
|
}
|
|
public long getUtc() {
|
return mUtc;
|
}
|
|
|
|
public float getScore() {
|
return mScore;
|
}
|
|
public void setScore(float mScore) {
|
this.mScore = mScore;
|
}
|
|
public String getItem() {
|
return mItem;
|
}
|
|
public void setItem(String mItem) {
|
this.mItem = mItem;
|
}
|
|
public String getReason() {
|
return reason;
|
}
|
|
public void setReason(String reason) {
|
this.reason = reason;
|
}
|
|
|
@Override
|
public int compareTo(ScoreBean o) {
|
if (this.mUtc>o.getUtc()){
|
return -1;
|
}else if (this.mUtc==o.getUtc()){
|
return 0;
|
}else{
|
return 1;
|
}
|
}
|
}
|