Subversion Repositories SmartDukaan

Rev

Rev 33087 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
33087 amit.gupta 1
package com.spice.profitmandi.common.model;
2
 
3
import java.time.LocalDate;
4
import java.util.Objects;
5
 
6
public class ImeiAgeingModel {
7
    String imei;
8
    int daysLeft;
33612 amit.gupta 9
    LocalDate vendorBillingDate;
33087 amit.gupta 10
    String color = "green";
11
 
12
    public String getImei() {
13
        return imei;
14
    }
15
 
16
    public void setImei(String imei) {
17
        this.imei = imei;
18
    }
19
 
20
    public int getDaysLeft() {
21
        return daysLeft;
22
    }
23
 
24
    public void setDaysLeft(int daysLeft) {
25
        this.daysLeft = daysLeft;
26
    }
27
 
28
    public String getColor() {
29
        return color;
30
    }
31
 
32
    public void setColor(String color) {
33
        this.color = color;
34
    }
35
 
33612 amit.gupta 36
    public LocalDate getVendorBillingDate() {
37
        return vendorBillingDate;
38
    }
39
 
40
    public void setVendorBillingDate(LocalDate vendorBillingDate) {
41
        this.vendorBillingDate = vendorBillingDate;
42
    }
43
 
33087 amit.gupta 44
    @Override
45
    public boolean equals(Object o) {
46
        if (this == o) return true;
47
        if (o == null || getClass() != o.getClass()) return false;
48
        ImeiAgeingModel that = (ImeiAgeingModel) o;
49
        return daysLeft == that.daysLeft && Objects.equals(imei, that.imei) && Objects.equals(color, that.color);
50
    }
51
 
52
    @Override
53
    public int hashCode() {
54
        return Objects.hash(imei, daysLeft, color);
55
    }
56
 
57
    @Override
58
    public String toString() {
59
        return "ImeiAgeingModel{" +
60
                "imei='" + imei + '\'' +
61
                ", daysLeft=" + daysLeft +
62
                ", color='" + color + '\'' +
63
                '}';
64
    }
65
}