Subversion Repositories SmartDukaan

Rev

Rev 28596 | Rev 30077 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 28596 Rev 29329
Line 37... Line 37...
37
 
37
 
38
	public void setEndDate(LocalDateTime endDate) {
38
	public void setEndDate(LocalDateTime endDate) {
39
		this.endDate = endDate;
39
		this.endDate = endDate;
40
	}
40
	}
41
 
41
 
-
 
42
	@Override
-
 
43
	public String toString() {
-
 
44
		return "DateRangeModel [startDate=" + startDate + ", endDate=" + endDate + "]";
-
 
45
	}
-
 
46
 
-
 
47
	@Override
-
 
48
	public int hashCode() {
-
 
49
		final int prime = 31;
-
 
50
		int result = 1;
-
 
51
		result = prime * result + ((endDate == null) ? 0 : endDate.hashCode());
-
 
52
		result = prime * result + ((startDate == null) ? 0 : startDate.hashCode());
-
 
53
		return result;
-
 
54
	}
-
 
55
 
-
 
56
	@Override
-
 
57
	public boolean equals(Object obj) {
-
 
58
		if (this == obj)
-
 
59
			return true;
-
 
60
		if (obj == null)
-
 
61
			return false;
-
 
62
		if (getClass() != obj.getClass())
-
 
63
			return false;
-
 
64
		DateRangeModel other = (DateRangeModel) obj;
-
 
65
		if (endDate == null) {
-
 
66
			if (other.endDate != null)
-
 
67
				return false;
-
 
68
		} else if (!endDate.equals(other.endDate))
-
 
69
			return false;
-
 
70
		if (startDate == null) {
-
 
71
			if (other.startDate != null)
-
 
72
				return false;
-
 
73
		} else if (!startDate.equals(other.startDate))
-
 
74
			return false;
-
 
75
		return true;
-
 
76
	}
-
 
77
	
-
 
78
	
-
 
79
 
42
}
80
}