Subversion Repositories SmartDukaan

Rev

Rev 25778 | Rev 29707 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
24440 amit.gupta 1
package com.spice.profitmandi.common.model;
2
 
25778 amit.gupta 3
import java.time.LocalDateTime;
4
 
24440 amit.gupta 5
public class InsuranceModel {
6
	private String brand;
25726 amit.gupta 7
	private String color;
25778 amit.gupta 8
	private String ram;
9
	private String memory;
10
	private LocalDateTime mfgDate;
29645 amit.gupta 11
	private String modelName;
12
	private float insuranceAmount;
13
	private String insuranceId;
14
	private float deviceSellingPrice;
15
	private String serialNumber;
16
	private String providerName;
17
	private String providerId;
18
	private String underWriterName;
19
	private String underWriterId;
25778 amit.gupta 20
 
21
 
22
	public String getRam() {
23
		return ram;
24
	}
25
	public void setRam(String ram) {
26
		this.ram = ram;
27
	}
28
	public String getMemory() {
29
		return memory;
30
	}
31
	public void setMemory(String memory) {
32
		this.memory = memory;
33
	}
34
	public LocalDateTime getMfgDate() {
35
		return mfgDate;
36
	}
37
	public void setMfgDate(LocalDateTime mfgDate) {
38
		this.mfgDate = mfgDate;
39
	}
25726 amit.gupta 40
	public String getColor() {
41
		return color;
42
	}
43
	public void setColor(String color) {
44
		this.color = color;
45
	}
46
	public String getSerialNumber() {
47
		return serialNumber;
48
	}
49
	public void setSerialNumber(String serialNumber) {
50
		this.serialNumber = serialNumber;
51
	}
24440 amit.gupta 52
	public float getDeviceSellingPrice() {
53
		return deviceSellingPrice;
54
	}
55
	public void setDeviceSellingPrice(float deviceSellingPrice) {
56
		this.deviceSellingPrice = deviceSellingPrice;
57
	}
25778 amit.gupta 58
 
59
 
24440 amit.gupta 60
	@Override
61
	public String toString() {
25778 amit.gupta 62
		return "InsuranceModel [brand=" + brand + ", color=" + color + ", ram=" + ram + ", memory=" + memory
63
				+ ", mfgDate=" + mfgDate + ", serialNumber=" + serialNumber + ", modelName=" + modelName
64
				+ ", insuranceAmount=" + insuranceAmount + ", insuranceId=" + insuranceId + ", deviceSellingPrice="
65
				+ deviceSellingPrice + ", providerName=" + providerName + ", providerId=" + providerId
66
				+ ", underWriterName=" + underWriterName + ", underWriterId=" + underWriterId + "]";
24440 amit.gupta 67
	}
68
	public String getBrand() {
69
		return brand;
70
	}
71
	public void setBrand(String brand) {
72
		this.brand = brand;
73
	}
74
	public String getModelName() {
75
		return modelName;
76
	}
77
	public void setModelName(String modelName) {
78
		this.modelName = modelName;
79
	}
80
	public float getInsuranceAmount() {
81
		return insuranceAmount;
82
	}
83
	public void setInsuranceAmount(float insuranceAmount) {
84
		this.insuranceAmount = insuranceAmount;
85
	}
86
	public String getInsuranceId() {
87
		return insuranceId;
88
	}
89
	public void setInsuranceId(String insuranceId) {
90
		this.insuranceId = insuranceId;
91
	}
92
	public String getProviderName() {
93
		return providerName;
94
	}
95
	public void setProviderName(String providerName) {
96
		this.providerName = providerName;
97
	}
98
	public String getProviderId() {
99
		return providerId;
100
	}
101
	public void setProviderId(String providerId) {
102
		this.providerId = providerId;
103
	}
104
	public String getUnderWriterName() {
105
		return underWriterName;
106
	}
107
	public void setUnderWriterName(String underWriterName) {
108
		this.underWriterName = underWriterName;
109
	}
110
	public String getUnderWriterId() {
111
		return underWriterId;
112
	}
113
	public void setUnderWriterId(String underWriterId) {
114
		this.underWriterId = underWriterId;
115
	}
116
	@Override
117
	public int hashCode() {
118
		final int prime = 31;
119
		int result = 1;
120
		result = prime * result + ((brand == null) ? 0 : brand.hashCode());
121
		result = prime * result + Float.floatToIntBits(deviceSellingPrice);
122
		result = prime * result + Float.floatToIntBits(insuranceAmount);
123
		result = prime * result + ((insuranceId == null) ? 0 : insuranceId.hashCode());
124
		result = prime * result + ((modelName == null) ? 0 : modelName.hashCode());
125
		result = prime * result + ((providerId == null) ? 0 : providerId.hashCode());
126
		result = prime * result + ((providerName == null) ? 0 : providerName.hashCode());
127
		result = prime * result + ((underWriterId == null) ? 0 : underWriterId.hashCode());
128
		result = prime * result + ((underWriterName == null) ? 0 : underWriterName.hashCode());
129
		return result;
130
	}
131
	@Override
132
	public boolean equals(Object obj) {
133
		if (this == obj)
134
			return true;
135
		if (obj == null)
136
			return false;
137
		if (getClass() != obj.getClass())
138
			return false;
139
		InsuranceModel other = (InsuranceModel) obj;
140
		if (brand == null) {
141
			if (other.brand != null)
142
				return false;
143
		} else if (!brand.equals(other.brand))
144
			return false;
145
		if (Float.floatToIntBits(deviceSellingPrice) != Float.floatToIntBits(other.deviceSellingPrice))
146
			return false;
147
		if (Float.floatToIntBits(insuranceAmount) != Float.floatToIntBits(other.insuranceAmount))
148
			return false;
149
		if (insuranceId == null) {
150
			if (other.insuranceId != null)
151
				return false;
152
		} else if (!insuranceId.equals(other.insuranceId))
153
			return false;
154
		if (modelName == null) {
155
			if (other.modelName != null)
156
				return false;
157
		} else if (!modelName.equals(other.modelName))
158
			return false;
159
		if (providerId == null) {
160
			if (other.providerId != null)
161
				return false;
162
		} else if (!providerId.equals(other.providerId))
163
			return false;
164
		if (providerName == null) {
165
			if (other.providerName != null)
166
				return false;
167
		} else if (!providerName.equals(other.providerName))
168
			return false;
169
		if (underWriterId == null) {
170
			if (other.underWriterId != null)
171
				return false;
172
		} else if (!underWriterId.equals(other.underWriterId))
173
			return false;
174
		if (underWriterName == null) {
175
			if (other.underWriterName != null)
176
				return false;
177
		} else if (!underWriterName.equals(other.underWriterName))
178
			return false;
179
		return true;
180
	}
181
 
182
 
183
 
184
 
185
}