Subversion Repositories SmartDukaan

Rev

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