Subversion Repositories SmartDukaan

Rev

Rev 29785 | Rev 33616 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
27657 amit.gupta 1
package com.spice.profitmandi.service.offers;
2
 
3
import java.util.List;
30755 amit.gupta 4
import java.util.Objects;
27657 amit.gupta 5
 
6
public class ItemCriteria {
7
	private int id;
8
    private float startPrice;
9
    private float endPrice;
10
    private List<Integer> catalogIds;
11
    private List<Integer> excludeCatalogIds;
28019 amit.gupta 12
    private boolean smartPhone;
30755 amit.gupta 13
	private boolean featuredPhone;
14
	private boolean led;
15
	private List<String> brands;
29785 amit.gupta 16
    private List<Integer> itemIds;
27657 amit.gupta 17
 
18
    public List<Integer> getExcludeCatalogIds() {
19
		return excludeCatalogIds;
20
	}
21
 
22
 
23
 
24
	public void setExcludeCatalogIds(List<Integer> excludeCatalogIds) {
25
		this.excludeCatalogIds = excludeCatalogIds;
26
	}
27
 
28
	public float getStartPrice() {
29
        return startPrice;
30
    }
31
 
32
 
29785 amit.gupta 33
    public List<Integer> getItemIds() {
34
		return itemIds;
35
	}
27657 amit.gupta 36
 
29785 amit.gupta 37
	public void setItemIds(List<Integer> itemIds) {
38
		this.itemIds = itemIds;
39
	}
40
 
41
 
42
 
43
	public int getId() {
27657 amit.gupta 44
		return id;
45
	}
46
 
47
	public void setId(int id) {
48
		this.id = id;
49
	}
50
 
51
	public void setStartPrice(float startPrice) {
52
        this.startPrice = startPrice;
53
    }
54
 
55
 
56
    public float getEndPrice() {
57
        return endPrice;
58
    }
59
 
60
 
61
    public void setEndPrice(float endPrice) {
62
        this.endPrice = endPrice;
63
    }
64
 
65
 
66
    public List<Integer> getCatalogIds() {
67
        return catalogIds;
68
    }
69
 
70
 
71
    public void setCatalogIds(List<Integer> catalogIds) {
72
        this.catalogIds = catalogIds;
73
    }
74
 
28019 amit.gupta 75
    public List<String> getBrands() {
76
        return brands;
77
    }
27657 amit.gupta 78
 
28019 amit.gupta 79
 
27657 amit.gupta 80
    public boolean isSmartPhone() {
28019 amit.gupta 81
		return smartPhone;
82
	}
27657 amit.gupta 83
 
84
 
85
 
28019 amit.gupta 86
	public void setSmartPhone(boolean smartPhone) {
87
		this.smartPhone = smartPhone;
88
	}
27657 amit.gupta 89
 
90
 
91
 
28019 amit.gupta 92
	public boolean isFeaturedPhone() {
93
		return featuredPhone;
94
	}
27657 amit.gupta 95
 
96
 
97
 
28019 amit.gupta 98
	public void setFeaturedPhone(boolean featuredPhone) {
99
		this.featuredPhone = featuredPhone;
100
	}
27657 amit.gupta 101
 
28019 amit.gupta 102
 
103
 
104
	public void setBrands(List<String> brands) {
27657 amit.gupta 105
        this.brands = brands;
106
    }
107
 
108
 
30755 amit.gupta 109
	@Override
27657 amit.gupta 110
	public String toString() {
30755 amit.gupta 111
		return "ItemCriteria{" +
112
				"id=" + id +
113
				", startPrice=" + startPrice +
114
				", endPrice=" + endPrice +
115
				", catalogIds=" + catalogIds +
116
				", excludeCatalogIds=" + excludeCatalogIds +
117
				", smartPhone=" + smartPhone +
118
				", featuredPhone=" + featuredPhone +
119
				", led=" + led +
120
				", brands=" + brands +
121
				", itemIds=" + itemIds +
122
				'}';
27657 amit.gupta 123
	}
124
 
30755 amit.gupta 125
	@Override
126
	public boolean equals(Object o) {
127
		if (this == o) return true;
128
		if (o == null || getClass() != o.getClass()) return false;
129
		ItemCriteria that = (ItemCriteria) o;
130
		return id == that.id && Float.compare(that.startPrice, startPrice) == 0 && Float.compare(that.endPrice, endPrice) == 0 && smartPhone == that.smartPhone && featuredPhone == that.featuredPhone && led == that.led && Objects.equals(catalogIds, that.catalogIds) && Objects.equals(excludeCatalogIds, that.excludeCatalogIds) && Objects.equals(brands, that.brands) && Objects.equals(itemIds, that.itemIds);
131
	}
27657 amit.gupta 132
 
30755 amit.gupta 133
	@Override
27657 amit.gupta 134
	public int hashCode() {
30755 amit.gupta 135
		return Objects.hash(id, startPrice, endPrice, catalogIds, excludeCatalogIds, smartPhone, featuredPhone, led, brands, itemIds);
27657 amit.gupta 136
	}
137
 
30755 amit.gupta 138
	public boolean isLed() {
139
		return led;
140
	}
27657 amit.gupta 141
 
30755 amit.gupta 142
	public void setLed(boolean led) {
143
		this.led = led;
27657 amit.gupta 144
	}
145
 
146
 
147
}