public boolean equal(Task task){
		if(task==null){
			return false;
		}
		if(this.arriveTime==task.getArriveTime() && this.spareTime==task.getSpareTime() && this.priority==task.getPriority()){
			return true;
		}
		return false;
	}