Subversion Repositories SmartDukaan

Rev

Rev 25634 | Rev 29329 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
25489 tejbeer 1
package com.spice.profitmandi.dao.model;
2
 
3
import java.time.LocalDateTime;
4
 
5
public class DateRangeModel {
6
	LocalDateTime startDate;
7
	LocalDateTime endDate;
8
 
28596 amit.gupta 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
	}
25634 amit.gupta 20
	public static DateRangeModel of(LocalDateTime startDate, LocalDateTime endDate) {
21
		DateRangeModel drm = new DateRangeModel();
22
		drm.setEndDate(endDate);
23
		drm.setStartDate(startDate);
24
		return drm;
25
	}
25489 tejbeer 26
	public LocalDateTime getStartDate() {
27
		return startDate;
28
	}
29
 
30
	public void setStartDate(LocalDateTime startDate) {
31
		this.startDate = startDate;
32
	}
33
 
34
	public LocalDateTime getEndDate() {
35
		return endDate;
36
	}
37
 
38
	public void setEndDate(LocalDateTime endDate) {
39
		this.endDate = endDate;
40
	}
41
 
42
}