Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
34035 ranu 1
package com.spice.profitmandi.service.inventory;
2
 
3
import java.time.LocalDateTime;
4
import java.util.Objects;
5
 
6
public class CatalogAgingModel {
7
    int catalogId;
8
    LocalDateTime agingDate;
9
    int exceedDays;
10
 
11
    public CatalogAgingModel(int catalogId, LocalDateTime agingDate, int exceedDays) {
12
        this.catalogId = catalogId;
13
        this.agingDate = agingDate;
14
        this.exceedDays = exceedDays;
15
    }
16
 
17
    public int getCatalogId() {
18
        return catalogId;
19
    }
20
 
21
    public void setCatalogId(int catalogId) {
22
        this.catalogId = catalogId;
23
    }
24
 
25
    public LocalDateTime getAgingDate() {
26
        return agingDate;
27
    }
28
 
29
    public void setAgingDate(LocalDateTime agingDate) {
30
        this.agingDate = agingDate;
31
    }
32
 
33
    public int getExceedDays() {
34
        return exceedDays;
35
    }
36
 
37
    public void setExceedDays(int exceedDays) {
38
        this.exceedDays = exceedDays;
39
    }
40
 
41
    @Override
42
    public boolean equals(Object o) {
43
        if (this == o) return true;
44
        if (o == null || getClass() != o.getClass()) return false;
45
        CatalogAgingModel that = (CatalogAgingModel) o;
46
        return catalogId == that.catalogId && exceedDays == that.exceedDays && Objects.equals(agingDate, that.agingDate);
47
    }
48
 
49
    @Override
50
    public int hashCode() {
51
        return Objects.hash(catalogId, agingDate, exceedDays);
52
    }
53
 
54
    @Override
55
    public String toString() {
56
        return "CatalogAgingModel{" +
57
                "catalogId=" + catalogId +
58
                ", agingDate=" + agingDate +
59
                ", exceedDays=" + exceedDays +
60
                '}';
61
    }
62
}