Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
22549 ashik.ali 1
package com.spice.profitmandi.common.model;
2
 
3
public class MopPriceModel {
4
	private boolean mop;
5
	private float price;
6
 
7
	public boolean isMop() {
8
		return mop;
9
	}
10
	public void setMop(boolean mop) {
11
		this.mop = mop;
12
	}
13
	public float getPrice() {
14
		return price;
15
	}
16
	public void setPrice(float price) {
17
		this.price = price;
18
	}
19
	@Override
20
	public int hashCode() {
21
		final int prime = 31;
22
		int result = 1;
23
		result = prime * result + (mop ? 1231 : 1237);
24
		result = prime * result + Float.floatToIntBits(price);
25
		return result;
26
	}
27
	@Override
28
	public boolean equals(Object obj) {
29
		if (this == obj)
30
			return true;
31
		if (obj == null)
32
			return false;
33
		if (getClass() != obj.getClass())
34
			return false;
35
		MopPriceModel other = (MopPriceModel) obj;
36
		if (mop != other.mop)
37
			return false;
38
		if (Float.floatToIntBits(price) != Float.floatToIntBits(other.price))
39
			return false;
40
		return true;
41
	}
42
	@Override
43
	public String toString() {
44
		return "MopPriceModel [mop=" + mop + ", price=" + price + "]";
45
	}
46
 
47
}