@Override
    public int compareTo(Object ob){
        Event e = (Event) ob;
        if(this.time < e.getTime()){
            return -1;
        }
        if(this.time > e.getTime()){
            return 1;
        }
        return 0;
    }