Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
25874 amit.gupta 1
package com.spice.profitmandi.service.inventory;
2
 
3
import java.util.List;
4
 
5
public class Bucket {
25880 amit.gupta 6
	private int id;
7
	private String title;
8
	private String shortDescription;
25874 amit.gupta 9
 
25880 amit.gupta 10
	private String imageUrl;
11
	private float totalAmount;
12
	private int totalQuantity;
25874 amit.gupta 13
 
25883 amit.gupta 14
	private List<ItemQuantityPojo> itemQuantityPojos;
15
	private List<FofoCatalogResponse> fofoCatalogResponses;
25874 amit.gupta 16
 
25880 amit.gupta 17
	public int getId() {
18
		return id;
19
	}
25874 amit.gupta 20
 
25880 amit.gupta 21
	public void setId(int id) {
22
		this.id = id;
23
	}
25883 amit.gupta 24
 
25
 
25874 amit.gupta 26
 
25883 amit.gupta 27
	public List<ItemQuantityPojo> getItemQuantityPojos() {
28
		return itemQuantityPojos;
29
	}
30
 
31
	public void setItemQuantityPojos(List<ItemQuantityPojo> itemQuantityPojos) {
32
		this.itemQuantityPojos = itemQuantityPojos;
33
	}
34
 
35
	public List<FofoCatalogResponse> getFofoCatalogResponses() {
36
		return fofoCatalogResponses;
37
	}
38
 
39
	public void setFofoCatalogResponses(List<FofoCatalogResponse> fofoCatalogResponses) {
40
		this.fofoCatalogResponses = fofoCatalogResponses;
41
	}
42
 
25880 amit.gupta 43
	public String getTitle() {
44
		return title;
45
	}
25874 amit.gupta 46
 
25880 amit.gupta 47
	public void setTitle(String title) {
48
		this.title = title;
49
	}
25874 amit.gupta 50
 
25880 amit.gupta 51
	public String getShortDescription() {
52
		return shortDescription;
53
	}
25874 amit.gupta 54
 
25880 amit.gupta 55
	public void setShortDescription(String shortDescription) {
56
		this.shortDescription = shortDescription;
57
	}
25874 amit.gupta 58
 
25880 amit.gupta 59
	public String getImageUrl() {
60
		return imageUrl;
61
	}
25874 amit.gupta 62
 
25880 amit.gupta 63
	public void setImageUrl(String imageUrl) {
64
		this.imageUrl = imageUrl;
65
	}
25874 amit.gupta 66
 
25880 amit.gupta 67
	@Override
68
	public int hashCode() {
69
		final int prime = 31;
70
		int result = 1;
71
		result = prime * result + id;
72
		result = prime * result + ((imageUrl == null) ? 0 : imageUrl.hashCode());
73
		result = prime * result + ((shortDescription == null) ? 0 : shortDescription.hashCode());
74
		result = prime * result + ((title == null) ? 0 : title.hashCode());
75
		result = prime * result + Float.floatToIntBits(totalAmount);
76
		result = prime * result + totalQuantity;
77
		return result;
78
	}
25874 amit.gupta 79
 
25880 amit.gupta 80
	@Override
81
	public boolean equals(Object obj) {
82
		if (this == obj)
83
			return true;
84
		if (obj == null)
85
			return false;
86
		if (getClass() != obj.getClass())
87
			return false;
88
		Bucket other = (Bucket) obj;
89
		if (id != other.id)
90
			return false;
91
		if (imageUrl == null) {
92
			if (other.imageUrl != null)
25874 amit.gupta 93
				return false;
25880 amit.gupta 94
		} else if (!imageUrl.equals(other.imageUrl))
95
			return false;
96
		if (shortDescription == null) {
97
			if (other.shortDescription != null)
25874 amit.gupta 98
				return false;
25880 amit.gupta 99
		} else if (!shortDescription.equals(other.shortDescription))
100
			return false;
101
		if (title == null) {
102
			if (other.title != null)
25874 amit.gupta 103
				return false;
25880 amit.gupta 104
		} else if (!title.equals(other.title))
105
			return false;
106
		if (Float.floatToIntBits(totalAmount) != Float.floatToIntBits(other.totalAmount))
107
			return false;
108
		if (totalQuantity != other.totalQuantity)
109
			return false;
110
		return true;
111
	}
25874 amit.gupta 112
 
25880 amit.gupta 113
	public float getTotalAmount() {
114
		return totalAmount;
115
	}
25874 amit.gupta 116
 
25880 amit.gupta 117
	public void setTotalAmount(float totalAmount) {
118
		this.totalAmount = totalAmount;
119
	}
25874 amit.gupta 120
 
25880 amit.gupta 121
	public int getTotalQuantity() {
122
		return totalQuantity;
123
	}
25874 amit.gupta 124
 
25880 amit.gupta 125
	public void setTotalQuantity(int totalQuantity) {
126
		this.totalQuantity = totalQuantity;
127
	}
25874 amit.gupta 128
 
25880 amit.gupta 129
	@Override
130
	public String toString() {
131
		return "Bucket [id=" + id + ", title=" + title + ", shortDescription=" + shortDescription + ", imageUrl="
25883 amit.gupta 132
				+ imageUrl + ", totalAmount=" + totalAmount + ", totalQuantity=" + totalQuantity
133
				+ ", itemQuantityPojos=" + itemQuantityPojos + ", fofoCatalogResponses=" + fofoCatalogResponses + "]";
25880 amit.gupta 134
	}
25874 amit.gupta 135
}