Rev 32130 | 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 ItemModel {private int itemId;private String brand;private String modelName;private String modelNumber;private String color;private String itemType;private boolean focused;public int getItemId() {return itemId;}public void setItemId(int itemId) {this.itemId = itemId;}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 ItemModel(int itemId, String brand, String modelName, String modelNumber, String color, String itemType, boolean focused) {this.itemId = itemId;this.brand = brand;this.modelName = modelName;this.modelNumber = modelNumber;this.color = color;this.itemType = itemType;this.focused = focused;}public boolean isFocused() {return focused;}public void setColor(String color) {this.color = color;}public String getItemType() {return itemType;}public void setItemType(String itemType) {this.itemType = itemType;}public ItemModel(int itemId) {this.itemId = itemId;}public ItemModel() {}public void setFocused(boolean focused) {this.focused = focused;}@Overridepublic int hashCode() {final int prime = 31;int result = 1;result = prime * result + itemId;return result;}@Overridepublic boolean equals(Object obj) {if (this == obj)return true;if (obj == null)return false;if (getClass() != obj.getClass())return false;ItemModel other = (ItemModel) obj;if (itemId != other.itemId)return false;return true;}@Overridepublic String toString() {return "ItemModel [itemId=" + itemId + ", brand=" + brand + ", modelName=" + modelName + ", modelNumber="+ modelNumber + ", color=" + color + ", itemType=" + itemType + "]";}}