@Override
public boolean equals(Object obj) {
	if (this == obj)
		return true;
	if (obj == null)
		return false;
	if (getClass() != obj.getClass())
		return false;
	tache other = (tache) obj;
	if (id != other.id)
		return false;
	if (priorite == null) {
		if (other.priorite != null)
			return false;
	} else if (!priorite.equals(other.priorite))
		return false;
	return true;
}