Rev 33616 | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed
package com.spice.profitmandi.service.offers;import java.util.List;import java.util.Objects;public class ItemCriteria implements java.io.Serializable {private static final long serialVersionUID = 1L;private int id;private float startPrice;private float endPrice;private List<Integer> catalogIds;private List<Integer> excludeCatalogIds;private boolean smartPhone;private boolean featuredPhone;private boolean led;private boolean smartWatch;private List<String> brands;private List<Integer> itemIds;public List<Integer> getExcludeCatalogIds() {return excludeCatalogIds;}public void setExcludeCatalogIds(List<Integer> excludeCatalogIds) {this.excludeCatalogIds = excludeCatalogIds;}public float getStartPrice() {return startPrice;}public List<Integer> getItemIds() {return itemIds;}public void setItemIds(List<Integer> itemIds) {this.itemIds = itemIds;}public int getId() {return id;}public void setId(int id) {this.id = id;}public void setStartPrice(float startPrice) {this.startPrice = startPrice;}public float getEndPrice() {return endPrice;}public void setEndPrice(float endPrice) {this.endPrice = endPrice;}public List<Integer> getCatalogIds() {return catalogIds;}public void setCatalogIds(List<Integer> catalogIds) {this.catalogIds = catalogIds;}public List<String> getBrands() {return brands;}public boolean isSmartPhone() {return smartPhone;}public void setSmartPhone(boolean smartPhone) {this.smartPhone = smartPhone;}public boolean isFeaturedPhone() {return featuredPhone;}public void setFeaturedPhone(boolean featuredPhone) {this.featuredPhone = featuredPhone;}public void setBrands(List<String> brands) {this.brands = brands;}@Overridepublic String toString() {return "ItemCriteria{" +"id=" + id +", startPrice=" + startPrice +", endPrice=" + endPrice +", catalogIds=" + catalogIds +", excludeCatalogIds=" + excludeCatalogIds +", smartPhone=" + smartPhone +", featuredPhone=" + featuredPhone +", led=" + led +", brands=" + brands +", itemIds=" + itemIds +'}';}@Overridepublic boolean equals(Object o) {if (this == o) return true;if (o == null || getClass() != o.getClass()) return false;ItemCriteria that = (ItemCriteria) o;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);}@Overridepublic int hashCode() {return Objects.hash(id, startPrice, endPrice, catalogIds, excludeCatalogIds, smartPhone, featuredPhone, led, brands, itemIds);}public boolean isLed() {return led;}public void setLed(boolean led) {this.led = led;}public boolean isSmartWatch() {return smartWatch;}public void setSmartWatch(boolean smartWatch) {this.smartWatch = smartWatch;}}