Subversion Repositories SmartDukaan

Rev

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

Rev 25634 Rev 28596
Line 4... Line 4...
4
 
4
 
5
public class DateRangeModel {
5
public class DateRangeModel {
6
	LocalDateTime startDate;
6
	LocalDateTime startDate;
7
	LocalDateTime endDate;
7
	LocalDateTime endDate;
8
 
8
 
-
 
9
	public static DateRangeModel withEndDate(LocalDateTime endDate) {
-
 
10
		DateRangeModel drm = new DateRangeModel();
-
 
11
		drm.setEndDate(endDate);
-
 
12
		return drm;
-
 
13
	}
-
 
14
	
-
 
15
	public static DateRangeModel withStartDate(LocalDateTime startDate) {
-
 
16
		DateRangeModel drm = new DateRangeModel();
-
 
17
		drm.setStartDate(startDate);
-
 
18
		return drm;
-
 
19
	}
9
	public static DateRangeModel of(LocalDateTime startDate, LocalDateTime endDate) {
20
	public static DateRangeModel of(LocalDateTime startDate, LocalDateTime endDate) {
10
		DateRangeModel drm = new DateRangeModel();
21
		DateRangeModel drm = new DateRangeModel();
11
		drm.setEndDate(endDate);
22
		drm.setEndDate(endDate);
12
		drm.setStartDate(startDate);
23
		drm.setStartDate(startDate);
13
		return drm;
24
		return drm;