Subversion Repositories SmartDukaan

Rev

Rev 22204 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
21786 ashik.ali 1
package com.spice.profitmandi.common.model;
2
 
3
import java.time.LocalDateTime;
4
 
5
public class TagListingModel {
6
	private int tagId;
7
	private String label;
8
	private int itemId;
9
	private float sellingPrice;
22204 amit.gupta 10
	private float mop;
21786 ashik.ali 11
	private float supportPrice;
22563 amit.gupta 12
	private float maxDiscountPrice;
21786 ashik.ali 13
	private LocalDateTime startDate;
14
	public int getTagId() {
15
		return tagId;
16
	}
17
	public void setTagId(int tagId) {
18
		this.tagId = tagId;
19
	}
20
	public String getLabel() {
21
		return label;
22
	}
23
	public void setLabel(String label) {
24
		this.label = label;
25
	}
26
	public int getItemId() {
27
		return itemId;
28
	}
29
	public void setItemId(int itemId) {
30
		this.itemId = itemId;
31
	}
32
	public float getSellingPrice() {
33
		return sellingPrice;
34
	}
35
	public void setSellingPrice(float sellingPrice) {
36
		this.sellingPrice = sellingPrice;
37
	}
38
	public float getSupportPrice() {
39
		return supportPrice;
40
	}
41
	public void setSupportPrice(float supportPrice) {
42
		this.supportPrice = supportPrice;
43
	}
44
	public LocalDateTime getStartDate() {
45
		return startDate;
46
	}
47
	public void setStartDate(LocalDateTime startDate) {
48
		this.startDate = startDate;
49
	}
21923 ashik.ali 50
 
51
 
22563 amit.gupta 52
 
53
 
54
	public float getMaxDiscountPrice() {
55
		return maxDiscountPrice;
56
	}
57
	public void setMaxDiscountPrice(float maxDiscountPrice) {
58
		this.maxDiscountPrice = maxDiscountPrice;
59
	}
22204 amit.gupta 60
	public float getMop() {
61
		return mop;
62
	}
63
	public void setMop(float mop) {
64
		this.mop = mop;
65
	}
21786 ashik.ali 66
	@Override
22204 amit.gupta 67
	public String toString() {
68
		return "TagListingModel [tagId=" + tagId + ", label=" + label + ", itemId=" + itemId + ", sellingPrice="
69
				+ sellingPrice + ", mop=" + mop + ", supportPrice=" + supportPrice + ", startDate=" + startDate + "]";
70
	}
71
	@Override
21923 ashik.ali 72
	public int hashCode() {
73
		final int prime = 31;
74
		int result = 1;
75
		result = prime * result + itemId;
76
		result = prime * result + ((label == null) ? 0 : label.hashCode());
22204 amit.gupta 77
		result = prime * result + Float.floatToIntBits(mop);
21923 ashik.ali 78
		result = prime * result + Float.floatToIntBits(sellingPrice);
79
		result = prime * result + ((startDate == null) ? 0 : startDate.hashCode());
80
		result = prime * result + Float.floatToIntBits(supportPrice);
81
		result = prime * result + tagId;
82
		return result;
83
	}
84
	@Override
85
	public boolean equals(Object obj) {
86
		if (this == obj)
87
			return true;
88
		if (obj == null)
89
			return false;
90
		if (getClass() != obj.getClass())
91
			return false;
92
		TagListingModel other = (TagListingModel) obj;
93
		if (itemId != other.itemId)
94
			return false;
95
		if (label == null) {
96
			if (other.label != null)
97
				return false;
98
		} else if (!label.equals(other.label))
99
			return false;
22204 amit.gupta 100
		if (Float.floatToIntBits(mop) != Float.floatToIntBits(other.mop))
101
			return false;
21923 ashik.ali 102
		if (Float.floatToIntBits(sellingPrice) != Float.floatToIntBits(other.sellingPrice))
103
			return false;
104
		if (startDate == null) {
105
			if (other.startDate != null)
106
				return false;
107
		} else if (!startDate.equals(other.startDate))
108
			return false;
109
		if (Float.floatToIntBits(supportPrice) != Float.floatToIntBits(other.supportPrice))
110
			return false;
111
		if (tagId != other.tagId)
112
			return false;
113
		return true;
114
	}
21786 ashik.ali 115
 
116
 
22204 amit.gupta 117
 
21786 ashik.ali 118
}