Subversion Repositories SmartDukaan

Rev

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