public boolean equals(Loan loan) {
		return (this.material.equals(loan.getListOfMaterials())
				&& (this.sameDate(startDate, loan.getStartDate()))
				&& (this.sameDate(this.endDate, loan.getEndDate()))
				&& (this.sameDate(this.askDate, loan.getAskDate()))
				&& this.user.equals(loan.getUser())
				&& (this.gaveBack == loan.getGaveBack())
				&& this.startState.equals(loan.getStartState()) && this.endState
					.equals(loan.getEndState()));
	}