Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | 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;
9
    String color = "green";
10
 
11
    public String getImei() {
12
        return imei;
13
    }
14
 
15
    public void setImei(String imei) {
16
        this.imei = imei;
17
    }
18
 
19
    public int getDaysLeft() {
20
        return daysLeft;
21
    }
22
 
23
    public void setDaysLeft(int daysLeft) {
24
        this.daysLeft = daysLeft;
25
    }
26
 
27
    public String getColor() {
28
        return color;
29
    }
30
 
31
    public void setColor(String color) {
32
        this.color = color;
33
    }
34
 
35
    @Override
36
    public boolean equals(Object o) {
37
        if (this == o) return true;
38
        if (o == null || getClass() != o.getClass()) return false;
39
        ImeiAgeingModel that = (ImeiAgeingModel) o;
40
        return daysLeft == that.daysLeft && Objects.equals(imei, that.imei) && Objects.equals(color, that.color);
41
    }
42
 
43
    @Override
44
    public int hashCode() {
45
        return Objects.hash(imei, daysLeft, color);
46
    }
47
 
48
    @Override
49
    public String toString() {
50
        return "ImeiAgeingModel{" +
51
                "imei='" + imei + '\'' +
52
                ", daysLeft=" + daysLeft +
53
                ", color='" + color + '\'' +
54
                '}';
55
    }
56
}