Rev 33087 | Blame | Compare with Previous | Last modification | View Log | RSS feed
package com.spice.profitmandi.common.model;import java.time.LocalDate;import java.util.Objects;public class ImeiAgeingModel {String imei;int daysLeft;LocalDate vendorBillingDate;String color = "green";public String getImei() {return imei;}public void setImei(String imei) {this.imei = imei;}public int getDaysLeft() {return daysLeft;}public void setDaysLeft(int daysLeft) {this.daysLeft = daysLeft;}public String getColor() {return color;}public void setColor(String color) {this.color = color;}public LocalDate getVendorBillingDate() {return vendorBillingDate;}public void setVendorBillingDate(LocalDate vendorBillingDate) {this.vendorBillingDate = vendorBillingDate;}@Overridepublic boolean equals(Object o) {if (this == o) return true;if (o == null || getClass() != o.getClass()) return false;ImeiAgeingModel that = (ImeiAgeingModel) o;return daysLeft == that.daysLeft && Objects.equals(imei, that.imei) && Objects.equals(color, that.color);}@Overridepublic int hashCode() {return Objects.hash(imei, daysLeft, color);}@Overridepublic String toString() {return "ImeiAgeingModel{" +"imei='" + imei + '\'' +", daysLeft=" + daysLeft +", color='" + color + '\'' +'}';}}