Subversion Repositories SmartDukaan

Rev

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