Subversion Repositories SmartDukaan

Rev

Rev 27657 | Rev 29785 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 27657 Rev 28019
Line 6... Line 6...
6
	private int id;
6
	private int id;
7
    private float startPrice;
7
    private float startPrice;
8
    private float endPrice;
8
    private float endPrice;
9
    private List<Integer> catalogIds;
9
    private List<Integer> catalogIds;
10
    private List<Integer> excludeCatalogIds;
10
    private List<Integer> excludeCatalogIds;
11
    private boolean isSmartPhone;
11
    private boolean smartPhone;
12
    private boolean isFeaturedPhone;
12
    private boolean featuredPhone;
13
    private List<String> brands;
13
    private List<String> brands;
14
 
14
 
15
    public List<Integer> getExcludeCatalogIds() {
15
    public List<Integer> getExcludeCatalogIds() {
16
		return excludeCatalogIds;
16
		return excludeCatalogIds;
17
	}
17
	}
Line 61... Line 61...
61
 
61
 
62
    public void setCatalogIds(List<Integer> catalogIds) {
62
    public void setCatalogIds(List<Integer> catalogIds) {
63
        this.catalogIds = catalogIds;
63
        this.catalogIds = catalogIds;
64
    }
64
    }
65
 
65
 
-
 
66
    public List<String> getBrands() {
-
 
67
        return brands;
-
 
68
    }
-
 
69
 
66
 
70
 
67
    public boolean isSmartPhone() {
71
    public boolean isSmartPhone() {
68
        return isSmartPhone;
72
		return smartPhone;
69
    }
73
	}
70
 
74
 
71
 
75
 
72
    public void setSmartPhone(boolean isSmartPhone) {
-
 
73
        this.isSmartPhone = isSmartPhone;
-
 
74
    }
-
 
75
 
76
 
-
 
77
	public void setSmartPhone(boolean smartPhone) {
-
 
78
		this.smartPhone = smartPhone;
-
 
79
	}
76
 
80
 
77
    public boolean isFeaturedPhone() {
-
 
78
        return isFeaturedPhone;
-
 
79
    }
-
 
80
 
81
 
81
 
82
 
82
    public void setFeaturedPhone(boolean isFeaturedPhone) {
83
	public boolean isFeaturedPhone() {
83
        this.isFeaturedPhone = isFeaturedPhone;
84
		return featuredPhone;
84
    }
85
	}
85
 
86
 
86
 
87
 
87
    public List<String> getBrands() {
-
 
88
        return brands;
-
 
89
    }
-
 
90
 
88
 
-
 
89
	public void setFeaturedPhone(boolean featuredPhone) {
-
 
90
		this.featuredPhone = featuredPhone;
-
 
91
	}
91
 
92
 
-
 
93
 
-
 
94
 
92
    public void setBrands(List<String> brands) {
95
	public void setBrands(List<String> brands) {
93
        this.brands = brands;
96
        this.brands = brands;
94
    }
97
    }
95
 
98
 
96
 
99
 
97
    @Override
100
    @Override
98
	public String toString() {
101
	public String toString() {
99
		return "ItemCriteria [id=" + id + ", startPrice=" + startPrice + ", endPrice=" + endPrice + ", catalogIds="
102
		return "ItemCriteria [id=" + id + ", startPrice=" + startPrice + ", endPrice=" + endPrice + ", catalogIds="
100
				+ catalogIds + ", excludeCatalogIds=" + excludeCatalogIds + ", isSmartPhone=" + isSmartPhone
103
				+ catalogIds + ", excludeCatalogIds=" + excludeCatalogIds + ", smartPhone=" + smartPhone
101
				+ ", isFeaturedPhone=" + isFeaturedPhone + ", brands=" + brands + "]";
104
				+ ", featuredPhone=" + featuredPhone + ", brands=" + brands + "]";
102
	}
105
	}
103
 
106
 
104
 
107
 
105
    @Override
108
    @Override
106
	public int hashCode() {
109
	public int hashCode() {
Line 108... Line 111...
108
		int result = 1;
111
		int result = 1;
109
		result = prime * result + ((brands == null) ? 0 : brands.hashCode());
112
		result = prime * result + ((brands == null) ? 0 : brands.hashCode());
110
		result = prime * result + ((catalogIds == null) ? 0 : catalogIds.hashCode());
113
		result = prime * result + ((catalogIds == null) ? 0 : catalogIds.hashCode());
111
		result = prime * result + Float.floatToIntBits(endPrice);
114
		result = prime * result + Float.floatToIntBits(endPrice);
112
		result = prime * result + ((excludeCatalogIds == null) ? 0 : excludeCatalogIds.hashCode());
115
		result = prime * result + ((excludeCatalogIds == null) ? 0 : excludeCatalogIds.hashCode());
-
 
116
		result = prime * result + (featuredPhone ? 1231 : 1237);
113
		result = prime * result + id;
117
		result = prime * result + id;
114
		result = prime * result + (isFeaturedPhone ? 1231 : 1237);
-
 
115
		result = prime * result + (isSmartPhone ? 1231 : 1237);
118
		result = prime * result + (smartPhone ? 1231 : 1237);
116
		result = prime * result + Float.floatToIntBits(startPrice);
119
		result = prime * result + Float.floatToIntBits(startPrice);
117
		return result;
120
		return result;
118
	}
121
	}
119
 
122
 
120
 
123
 
Line 142... Line 145...
142
		if (excludeCatalogIds == null) {
145
		if (excludeCatalogIds == null) {
143
			if (other.excludeCatalogIds != null)
146
			if (other.excludeCatalogIds != null)
144
				return false;
147
				return false;
145
		} else if (!excludeCatalogIds.equals(other.excludeCatalogIds))
148
		} else if (!excludeCatalogIds.equals(other.excludeCatalogIds))
146
			return false;
149
			return false;
147
		if (id != other.id)
150
		if (featuredPhone != other.featuredPhone)
148
			return false;
151
			return false;
149
		if (isFeaturedPhone != other.isFeaturedPhone)
152
		if (id != other.id)
150
			return false;
153
			return false;
151
		if (isSmartPhone != other.isSmartPhone)
154
		if (smartPhone != other.smartPhone)
152
			return false;
155
			return false;
153
		if (Float.floatToIntBits(startPrice) != Float.floatToIntBits(other.startPrice))
156
		if (Float.floatToIntBits(startPrice) != Float.floatToIntBits(other.startPrice))
154
			return false;
157
			return false;
155
		return true;
158
		return true;
156
	}
159
	}