Subversion Repositories SmartDukaan

Rev

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