Rev 27067 | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed
package com.spice.profitmandi.common.util;import java.time.LocalDateTime;import in.shop2020.model.v1.order.WalletReferenceType;public class WalletHistoryModel {private int fofoId;private WalletReferenceType walletReferenceType;private double amount;private String description;private LocalDateTime businessDate;private int reference;@Overridepublic String toString() {return "WalletHistoryModel [fofoId=" + fofoId + ", walletReferenceType=" + walletReferenceType + ", amount="+ amount + ", description=" + description + ", businessDate=" + businessDate + ", reference="+ reference + "]";}public int getFofoId() {return fofoId;}public void setFofoId(int fofoId) {this.fofoId = fofoId;}@Overridepublic int hashCode() {final int prime = 31;int result = 1;long temp;temp = Double.doubleToLongBits(amount);result = prime * result + (int) (temp ^ (temp >>> 32));result = prime * result + ((businessDate == null) ? 0 : businessDate.hashCode());result = prime * result + ((description == null) ? 0 : description.hashCode());result = prime * result + fofoId;result = prime * result + reference;result = prime * result + ((walletReferenceType == null) ? 0 : walletReferenceType.hashCode());return result;}@Overridepublic boolean equals(Object obj) {if (this == obj)return true;if (obj == null)return false;if (getClass() != obj.getClass())return false;WalletHistoryModel other = (WalletHistoryModel) obj;if (Double.doubleToLongBits(amount) != Double.doubleToLongBits(other.amount))return false;if (businessDate == null) {if (other.businessDate != null)return false;} else if (!businessDate.equals(other.businessDate))return false;if (description == null) {if (other.description != null)return false;} else if (!description.equals(other.description))return false;if (fofoId != other.fofoId)return false;if (reference != other.reference)return false;if (walletReferenceType != other.walletReferenceType)return false;return true;}public int getReference() {return reference;}public void setReference(int reference) {this.reference = reference;}public WalletReferenceType getWalletReferenceType() {return walletReferenceType;}public void setWalletReferenceType(WalletReferenceType walletReferenceType) {this.walletReferenceType = walletReferenceType;}public double getAmount() {return amount;}public void setAmount(double amount) {this.amount = amount;}public String getDescription() {return description;}public void setDescription(String description) {this.description = description;}public LocalDateTime getBusinessDate() {return businessDate;}public void setBusinessDate(LocalDateTime businessDate) {this.businessDate = businessDate;}}