Rev 32230 | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed
package com.spice.profitmandi.common.model;import java.util.Objects;public class ItemModel {private int itemId;private String brand;private String modelName;private String modelNumber;private String color;private String itemType;private boolean focused;private String status;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, String status) {this.itemId = itemId;this.brand = brand;this.modelName = modelName;this.modelNumber = modelNumber;this.color = color;this.itemType = itemType;this.focused = focused;this.status = status;}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;}public String getStatus() {return status;}public void setStatus(String status) {this.status = status;}@Overridepublic boolean equals(Object o) {if (this == o) return true;if (o == null || getClass() != o.getClass()) return false;ItemModel itemModel = (ItemModel) o;return itemId == itemModel.itemId && focused == itemModel.focused && Objects.equals(brand, itemModel.brand) && Objects.equals(modelName, itemModel.modelName) && Objects.equals(modelNumber, itemModel.modelNumber) && Objects.equals(color, itemModel.color) && Objects.equals(itemType, itemModel.itemType) && Objects.equals(status, itemModel.status);}@Overridepublic int hashCode() {return Objects.hash(itemId, brand, modelName, modelNumber, color, itemType, focused, status);}@Overridepublic String toString() {return "ItemModel{" +"itemId=" + itemId +", brand='" + brand + '\'' +", modelName='" + modelName + '\'' +", modelNumber='" + modelNumber + '\'' +", color='" + color + '\'' +", itemType='" + itemType + '\'' +", focused=" + focused +", status='" + status + '\'' +'}';}}