Rev 27508 | Go to most recent revision | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed
package com.spice.profitmandi.dao.model;public class WarehouseWiseStockModel {private int warehouseId;private String warehouseName;private int stockQty;private double stockValue;public WarehouseWiseStockModel(int warehouseId, int stockQty, double stockValue) {super();this.warehouseId = warehouseId;this.stockQty = stockQty;this.stockValue = stockValue;}@Overridepublic String toString() {return "WarehouseWiseStockModel [warehouseId=" + warehouseId + ", warehouseName=" + warehouseName+ ", stockQty=" + stockQty + ", stockValue=" + stockValue + "]";}public int getWarehouseId() {return warehouseId;}public void setWarehouseId(int warehouseId) {this.warehouseId = warehouseId;}public String getWarehouseName() {return warehouseName;}public void setWarehouseName(String warehouseName) {this.warehouseName = warehouseName;}public int getStockQty() {return stockQty;}public void setStockQty(int stockQty) {this.stockQty = stockQty;}public double getStockValue() {return stockValue;}public void setStockValue(double stockValue) {this.stockValue = stockValue;}@Overridepublic int hashCode() {final int prime = 31;int result = 1;result = prime * result + stockQty;long temp;temp = Double.doubleToLongBits(stockValue);result = prime * result + (int) (temp ^ (temp >>> 32));result = prime * result + warehouseId;result = prime * result + ((warehouseName == null) ? 0 : warehouseName.hashCode());return result;}@Overridepublic boolean equals(Object obj) {if (this == obj)return true;if (obj == null)return false;if (getClass() != obj.getClass())return false;WarehouseWiseStockModel other = (WarehouseWiseStockModel) obj;if (stockQty != other.stockQty)return false;if (Double.doubleToLongBits(stockValue) != Double.doubleToLongBits(other.stockValue))return false;if (warehouseId != other.warehouseId)return false;if (warehouseName == null) {if (other.warehouseName != null)return false;} else if (!warehouseName.equals(other.warehouseName))return false;return true;}}