Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
30158 manish 1
package com.spice.profitmandi.dao.model;
2
 
3
public class FocoSchemeOutReportModel {
4
 
5
   private String invoiceNumber;
6
 
7
	private int quantity;
8
	private String brand;
9
 
10
	private String modelName;
11
 
12
	private String modelNumber;
13
 
14
	private String color;
15
 
16
	private double amount;
17
 
18
	public String getInvoiceNumber() {
19
		return invoiceNumber;
20
	}
21
 
22
	public void setInvoiceNumber(String invoiceNumber) {
23
		this.invoiceNumber = invoiceNumber;
24
	}
25
 
26
	public int getQuantity() {
27
		return quantity;
28
	}
29
 
30
	public void setQuantity(int quantity) {
31
		this.quantity = quantity;
32
	}
33
 
34
	public String getBrand() {
35
		return brand;
36
	}
37
 
38
	public void setBrand(String brand) {
39
		this.brand = brand;
40
	}
41
 
42
	public String getModelName() {
43
		return modelName;
44
	}
45
 
46
	public void setModelName(String modelName) {
47
		this.modelName = modelName;
48
	}
49
 
50
	public String getModelNumber() {
51
		return modelNumber;
52
	}
53
 
54
	public void setModelNumber(String modelNumber) {
55
		this.modelNumber = modelNumber;
56
	}
57
 
58
	public String getColor() {
59
		return color;
60
	}
61
 
62
	public void setColor(String color) {
63
		this.color = color;
64
	}
65
 
66
	public double getAmount() {
67
		return amount;
68
	}
69
 
70
	public void setAmount(double amount) {
71
		this.amount = amount;
72
	}
73
 
74
	@Override
75
	public String toString() {
76
		return "FocoSchemeOutReportModel [invoiceNumber=" + invoiceNumber + ", quantity=" + quantity + ", brand="
77
				+ brand + ", modelName=" + modelName + ", modelNumber=" + modelNumber + ", color=" + color + ", amount="
78
				+ amount + "]";
79
	}
80
 
81
 
82
 
83
	@Override
84
	public int hashCode() {
85
		final int prime = 31;
86
		int result = 1;
87
		long temp;
88
		temp = Double.doubleToLongBits(amount);
89
		result = prime * result + (int) (temp ^ (temp >>> 32));
90
		result = prime * result + ((brand == null) ? 0 : brand.hashCode());
91
		result = prime * result + ((color == null) ? 0 : color.hashCode());
92
		result = prime * result + ((invoiceNumber == null) ? 0 : invoiceNumber.hashCode());
93
		result = prime * result + ((modelName == null) ? 0 : modelName.hashCode());
94
		result = prime * result + ((modelNumber == null) ? 0 : modelNumber.hashCode());
95
		result = prime * result + quantity;
96
		return result;
97
	}
98
 
99
	@Override
100
	public boolean equals(Object obj) {
101
		if (this == obj)
102
			return true;
103
		if (obj == null)
104
			return false;
105
		if (getClass() != obj.getClass())
106
			return false;
107
		FocoSchemeOutReportModel other = (FocoSchemeOutReportModel) obj;
108
		if (Double.doubleToLongBits(amount) != Double.doubleToLongBits(other.amount))
109
			return false;
110
		if (brand == null) {
111
			if (other.brand != null)
112
				return false;
113
		} else if (!brand.equals(other.brand))
114
			return false;
115
		if (color == null) {
116
			if (other.color != null)
117
				return false;
118
		} else if (!color.equals(other.color))
119
			return false;
120
		if (invoiceNumber == null) {
121
			if (other.invoiceNumber != null)
122
				return false;
123
		} else if (!invoiceNumber.equals(other.invoiceNumber))
124
			return false;
125
		if (modelName == null) {
126
			if (other.modelName != null)
127
				return false;
128
		} else if (!modelName.equals(other.modelName))
129
			return false;
130
		if (modelNumber == null) {
131
			if (other.modelNumber != null)
132
				return false;
133
		} else if (!modelNumber.equals(other.modelNumber))
134
			return false;
135
		if (quantity != other.quantity)
136
			return false;
137
		return true;
138
	}
139
 
140
	public FocoSchemeOutReportModel(String invoiceNumber, int quantity, String brand, String modelName,
141
			String modelNumber, String color, double amount) {
142
		super();
143
		this.invoiceNumber = invoiceNumber;
144
		this.quantity = quantity;
145
		this.brand = brand;
146
		this.modelName = modelName;
147
		this.modelNumber = modelNumber;
148
		this.color = color;
149
		this.amount = amount;
150
	}
151
 
152
 
153
 
154
 
155
 
156
}