@Override
	public int compareTo(Object obj) {
		if (!(obj instanceof TimeInteger)) {
			return -1;
		}
		TimeInteger other = (TimeInteger) obj;
		
		if ((this.time < other.time) || (this.time == other.time && this.isStartingTime && !other.isStartingTime)){
        	return -1;
        } else if ((this.time > other.time) || (this.time == other.time && !this.isStartingTime && other.isStartingTime)){
        	return 1;
        } else {
        	return 0;
        }
	}