Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
33443 ranu 1
package com.spice.profitmandi.dao.model;
2
 
3
import java.time.LocalDate;
4
import java.util.Objects;
5
 
6
public class PrintResourceModel {
7
 
8
    private String title;
9
    private LocalDate startDate;
10
    private LocalDate endDate;
11
    private String imgUrl;
12
    private String region;
13
 
14
    public String getTitle() {
15
        return title;
16
    }
17
 
18
    public void setTitle(String title) {
19
        this.title = title;
20
    }
21
 
22
    public LocalDate getStartDate() {
23
        return startDate;
24
    }
25
 
26
    public void setStartDate(LocalDate startDate) {
27
        this.startDate = startDate;
28
    }
29
 
30
    public LocalDate getEndDate() {
31
        return endDate;
32
    }
33
 
34
    public void setEndDate(LocalDate endDate) {
35
        this.endDate = endDate;
36
    }
37
 
38
    public String getImgUrl() {
39
        return imgUrl;
40
    }
41
 
42
    public void setImgUrl(String imgUrl) {
43
        this.imgUrl = imgUrl;
44
    }
45
 
46
    public String getRegion() {
47
        return region;
48
    }
49
 
50
    public void setRegion(String region) {
51
        this.region = region;
52
    }
53
 
54
    @Override
55
    public boolean equals(Object o) {
56
        if (this == o) return true;
57
        if (o == null || getClass() != o.getClass()) return false;
58
        PrintResourceModel that = (PrintResourceModel) o;
59
        return Objects.equals(title, that.title) && Objects.equals(startDate, that.startDate) && Objects.equals(endDate, that.endDate) && Objects.equals(imgUrl, that.imgUrl) && Objects.equals(region, that.region);
60
    }
61
 
62
    @Override
63
    public int hashCode() {
64
        return Objects.hash(title, startDate, endDate, imgUrl, region);
65
    }
66
 
67
    @Override
68
    public String toString() {
69
        return "PrintResourceModel{" +
70
                "title='" + title + '\'' +
71
                ", startDate=" + startDate +
72
                ", endDate=" + endDate +
73
                ", imgUrl='" + imgUrl + '\'' +
74
                ", region='" + region + '\'' +
75
                '}';
76
    }
77
}