Rev 22384 | Go to most recent revision | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed
package com.spice.profitmandi.common.model;public class CustomLineItem {private String brand;private String modelName;private String modelNumber;private String color;private String displayName;private float quantity;private float unitPrice;private String imageUrl;private String title;public String getTitle() {return title;}public void setTitle(String title) {this.title = title;}public String getBrand() {return brand;}public void setBrand(String brand) {this.brand = brand;}public String getModelName() {return modelName;}public void setModelName(String modelName) {this.modelName = modelName;}public String getModelNumber() {return modelNumber;}public void setModelNumber(String modelNumber) {this.modelNumber = modelNumber;}public String getColor() {return color;}public void setColor(String color) {this.color = color;}public float getQuantity() {return quantity;}public void setQuantity(float quantity) {this.quantity = quantity;}public float getUnitPrice() {return unitPrice;}public void setUnitPrice(float unitPrice) {this.unitPrice = unitPrice;}public String getDisplayName() {return displayName;}public void setDisplayName(String displayName) {this.displayName = displayName;}@Overridepublic int hashCode() {final int prime = 31;int result = 1;result = prime * result + ((brand == null) ? 0 : brand.hashCode());result = prime * result + ((color == null) ? 0 : color.hashCode());result = prime * result + ((displayName == null) ? 0 : displayName.hashCode());result = prime * result + ((modelName == null) ? 0 : modelName.hashCode());result = prime * result + ((modelNumber == null) ? 0 : modelNumber.hashCode());result = prime * result + Float.floatToIntBits(quantity);result = prime * result + Float.floatToIntBits(unitPrice);return result;}@Overridepublic boolean equals(Object obj) {if (this == obj)return true;if (obj == null)return false;if (getClass() != obj.getClass())return false;CustomLineItem other = (CustomLineItem) obj;if (brand == null) {if (other.brand != null)return false;} else if (!brand.equals(other.brand))return false;if (color == null) {if (other.color != null)return false;} else if (!color.equals(other.color))return false;if (displayName == null) {if (other.displayName != null)return false;} else if (!displayName.equals(other.displayName))return false;if (modelName == null) {if (other.modelName != null)return false;} else if (!modelName.equals(other.modelName))return false;if (modelNumber == null) {if (other.modelNumber != null)return false;} else if (!modelNumber.equals(other.modelNumber))return false;if (Float.floatToIntBits(quantity) != Float.floatToIntBits(other.quantity))return false;if (Float.floatToIntBits(unitPrice) != Float.floatToIntBits(other.unitPrice))return false;return true;}@Overridepublic String toString() {return "CustomLineItem [brand=" + brand + ", modelName=" + modelName + ", modelNumber=" + modelNumber+ ", color=" + color + ", quantity=" + quantity + ", unitPrice=" + unitPrice + "]";}public String getImageUrl() {return imageUrl;}public void setImageUrl(String imageUrl) {this.imageUrl = imageUrl;}}