Rev 27877 | 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;import java.util.List;import com.spice.profitmandi.dao.enumuration.catalog.AmountType;import com.spice.profitmandi.dao.enumuration.catalog.AchievementType;public class OfferRowModel {private String storeName;private int fofoId;private int maxBrandSharePercentage;private double totalPurchaseValue;private double eligibleSaleDp;private double totalGrnValue;private double totalSale;private double eligibleSale;private List<String> pendingImeis;private double achievedTarget;private double nextTarget;private int soldValue;private AchievementType targetType;private int currentPayoutTarget;private int payoutTargetAchieved;private float payoutValue;private float payoutValueDp;public float getPayoutValueDp() {return payoutValueDp;}public void setPayoutValueDp(float payoutValueDp) {this.payoutValueDp = payoutValueDp;}private AmountType amountType;private double finalPayout;public int getCurrentPayoutTarget() {return currentPayoutTarget;}public void setCurrentPayoutTarget(int currentPayoutTarget) {this.currentPayoutTarget = currentPayoutTarget;}public List<String> getPendingImeis() {return pendingImeis;}public void setPendingImeis(List<String> pendingImeis) {this.pendingImeis = pendingImeis;}public int getSoldValue() {return soldValue;}public void setSoldValue(int soldValue) {this.soldValue = soldValue;}public AchievementType getTargetType() {return targetType;}public void setTargetType(AchievementType targetType) {this.targetType = targetType;}public AmountType getAmountType() {return amountType;}public void setAmountType(AmountType amountType) {this.amountType = amountType;}public int getPayoutTargetAchieved() {return payoutTargetAchieved;}public void setPayoutTargetAchieved(int payoutTargetAchieved) {this.payoutTargetAchieved = payoutTargetAchieved;}public float getPayoutValue() {return payoutValue;}public void setPayoutValue(float payoutValue) {this.payoutValue = payoutValue;}public double getFinalPayout() {return finalPayout;}public void setFinalPayout(double finalPayout) {this.finalPayout = finalPayout;}public double getEligibleSaleDp() {return eligibleSaleDp;}@Overridepublic String toString() {return "OfferRowModel [storeName=" + storeName + ", fofoId=" + fofoId + ", maxBrandSharePercentage="+ maxBrandSharePercentage + ", totalPurchaseValue=" + totalPurchaseValue + ", eligibleSaleDp="+ eligibleSaleDp + ", totalGrnValue=" + totalGrnValue + ", totalSale=" + totalSale + ", eligibleSale="+ eligibleSale + ", pendingImeis=" + pendingImeis + ", achievedTarget=" + achievedTarget+ ", nextTarget=" + nextTarget + ", soldValue=" + soldValue + ", targetType=" + targetType+ ", currentPayoutTarget=" + currentPayoutTarget + ", payoutTargetAchieved=" + payoutTargetAchieved+ ", payoutValue=" + payoutValue + ", payoutValueDp=" + payoutValueDp + ", amountType=" + amountType+ ", finalPayout=" + finalPayout + "]";}@Overridepublic boolean equals(Object obj) {if (this == obj)return true;if (obj == null)return false;if (getClass() != obj.getClass())return false;OfferRowModel other = (OfferRowModel) obj;if (Double.doubleToLongBits(achievedTarget) != Double.doubleToLongBits(other.achievedTarget))return false;if (amountType != other.amountType)return false;if (currentPayoutTarget != other.currentPayoutTarget)return false;if (Double.doubleToLongBits(eligibleSale) != Double.doubleToLongBits(other.eligibleSale))return false;if (Double.doubleToLongBits(eligibleSaleDp) != Double.doubleToLongBits(other.eligibleSaleDp))return false;if (Double.doubleToLongBits(finalPayout) != Double.doubleToLongBits(other.finalPayout))return false;if (fofoId != other.fofoId)return false;if (maxBrandSharePercentage != other.maxBrandSharePercentage)return false;if (Double.doubleToLongBits(nextTarget) != Double.doubleToLongBits(other.nextTarget))return false;if (payoutTargetAchieved != other.payoutTargetAchieved)return false;if (Float.floatToIntBits(payoutValue) != Float.floatToIntBits(other.payoutValue))return false;if (Float.floatToIntBits(payoutValueDp) != Float.floatToIntBits(other.payoutValueDp))return false;if (pendingImeis == null) {if (other.pendingImeis != null)return false;} else if (!pendingImeis.equals(other.pendingImeis))return false;if (soldValue != other.soldValue)return false;if (storeName == null) {if (other.storeName != null)return false;} else if (!storeName.equals(other.storeName))return false;if (targetType != other.targetType)return false;if (Double.doubleToLongBits(totalGrnValue) != Double.doubleToLongBits(other.totalGrnValue))return false;if (Double.doubleToLongBits(totalPurchaseValue) != Double.doubleToLongBits(other.totalPurchaseValue))return false;if (Double.doubleToLongBits(totalSale) != Double.doubleToLongBits(other.totalSale))return false;return true;}@Overridepublic int hashCode() {final int prime = 31;int result = 1;long temp;temp = Double.doubleToLongBits(achievedTarget);result = prime * result + (int) (temp ^ (temp >>> 32));result = prime * result + ((amountType == null) ? 0 : amountType.hashCode());result = prime * result + currentPayoutTarget;temp = Double.doubleToLongBits(eligibleSale);result = prime * result + (int) (temp ^ (temp >>> 32));temp = Double.doubleToLongBits(eligibleSaleDp);result = prime * result + (int) (temp ^ (temp >>> 32));temp = Double.doubleToLongBits(finalPayout);result = prime * result + (int) (temp ^ (temp >>> 32));result = prime * result + fofoId;result = prime * result + maxBrandSharePercentage;temp = Double.doubleToLongBits(nextTarget);result = prime * result + (int) (temp ^ (temp >>> 32));result = prime * result + payoutTargetAchieved;result = prime * result + Float.floatToIntBits(payoutValue);result = prime * result + Float.floatToIntBits(payoutValueDp);result = prime * result + ((pendingImeis == null) ? 0 : pendingImeis.hashCode());result = prime * result + soldValue;result = prime * result + ((storeName == null) ? 0 : storeName.hashCode());result = prime * result + ((targetType == null) ? 0 : targetType.hashCode());temp = Double.doubleToLongBits(totalGrnValue);result = prime * result + (int) (temp ^ (temp >>> 32));temp = Double.doubleToLongBits(totalPurchaseValue);result = prime * result + (int) (temp ^ (temp >>> 32));temp = Double.doubleToLongBits(totalSale);result = prime * result + (int) (temp ^ (temp >>> 32));return result;}public void setEligibleSaleDp(double eligibleSaleDp) {this.eligibleSaleDp = eligibleSaleDp;}public double getTotalSale() {return totalSale;}public void setTotalSale(double totalSale) {this.totalSale = totalSale;}public String getStoreName() {return storeName;}public void setStoreName(String storeName) {this.storeName = storeName;}public int getFofoId() {return fofoId;}public void setFofoId(int fofoId) {this.fofoId = fofoId;}public int getMaxBrandSharePercentage() {return maxBrandSharePercentage;}public void setMaxBrandSharePercentage(int maxBrandSharePercentage) {this.maxBrandSharePercentage = maxBrandSharePercentage;}public double getTotalPurchaseValue() {return totalPurchaseValue;}public void setTotalPurchaseValue(double totalPurchaseValue) {this.totalPurchaseValue = totalPurchaseValue;}public double getTotalGrnValue() {return totalGrnValue;}public void setTotalGrnValue(double totalGrnValue) {this.totalGrnValue = totalGrnValue;}public double getEligibleSale() {return eligibleSale;}public void setEligibleSale(double eligibleSale) {this.eligibleSale = eligibleSale;}public double getAchievedTarget() {return achievedTarget;}public void setAchievedTarget(double achievedTarget) {this.achievedTarget = achievedTarget;}public double getNextTarget() {return nextTarget;}public void setNextTarget(double nextTarget) {this.nextTarget = nextTarget;}}