Rev 25880 | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed
package com.spice.profitmandi.service.inventory;import java.util.List;public class Bucket {private int id;private String title;private String shortDescription;private String imageUrl;private float totalAmount;private int totalQuantity;private List<ItemQuantityPojo> itemQuantityPojos;private List<FofoCatalogResponse> fofoCatalogResponses;public int getId() {return id;}public void setId(int id) {this.id = id;}public List<ItemQuantityPojo> getItemQuantityPojos() {return itemQuantityPojos;}public void setItemQuantityPojos(List<ItemQuantityPojo> itemQuantityPojos) {this.itemQuantityPojos = itemQuantityPojos;}public List<FofoCatalogResponse> getFofoCatalogResponses() {return fofoCatalogResponses;}public void setFofoCatalogResponses(List<FofoCatalogResponse> fofoCatalogResponses) {this.fofoCatalogResponses = fofoCatalogResponses;}public String getTitle() {return title;}public void setTitle(String title) {this.title = title;}public String getShortDescription() {return shortDescription;}public void setShortDescription(String shortDescription) {this.shortDescription = shortDescription;}public String getImageUrl() {return imageUrl;}public void setImageUrl(String imageUrl) {this.imageUrl = imageUrl;}@Overridepublic int hashCode() {final int prime = 31;int result = 1;result = prime * result + id;result = prime * result + ((imageUrl == null) ? 0 : imageUrl.hashCode());result = prime * result + ((shortDescription == null) ? 0 : shortDescription.hashCode());result = prime * result + ((title == null) ? 0 : title.hashCode());result = prime * result + Float.floatToIntBits(totalAmount);result = prime * result + totalQuantity;return result;}@Overridepublic boolean equals(Object obj) {if (this == obj)return true;if (obj == null)return false;if (getClass() != obj.getClass())return false;Bucket other = (Bucket) obj;if (id != other.id)return false;if (imageUrl == null) {if (other.imageUrl != null)return false;} else if (!imageUrl.equals(other.imageUrl))return false;if (shortDescription == null) {if (other.shortDescription != null)return false;} else if (!shortDescription.equals(other.shortDescription))return false;if (title == null) {if (other.title != null)return false;} else if (!title.equals(other.title))return false;if (Float.floatToIntBits(totalAmount) != Float.floatToIntBits(other.totalAmount))return false;if (totalQuantity != other.totalQuantity)return false;return true;}public float getTotalAmount() {return totalAmount;}public void setTotalAmount(float totalAmount) {this.totalAmount = totalAmount;}public int getTotalQuantity() {return totalQuantity;}public void setTotalQuantity(int totalQuantity) {this.totalQuantity = totalQuantity;}@Overridepublic String toString() {return "Bucket [id=" + id + ", title=" + title + ", shortDescription=" + shortDescription + ", imageUrl="+ imageUrl + ", totalAmount=" + totalAmount + ", totalQuantity=" + totalQuantity+ ", itemQuantityPojos=" + itemQuantityPojos + ", fofoCatalogResponses=" + fofoCatalogResponses + "]";}}