| | |
| | | package safeluck.drive.evaluation.bean; |
| | | |
| | | import com.anyun.exam.lib.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 { |
| | | public class ScoreBean implements Comparable<ScoreBean>{ |
| | | /**扣分分数*/ |
| | | private float mScore; |
| | | /**扣分项目*/ |
| | |
| | | /**扣分原因*/ |
| | | 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)){ |
| | | MyLog.i("utc时间不是纯数字"); |
| | | }else{ |
| | | |
| | | |
| | | mUtc = Utils.dateToLongSec(utc); |
| | | } |
| | | } |
| | | |
| | | public long getUtc() { |
| | | return mUtc; |
| | | } |
| | | |
| | | |
| | | |
| | | public float getScore() { |
| | | return mScore; |
| | |
| | | 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; |
| | | } |
| | | } |
| | | } |