Rev 22858 | 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 CustomPaymentOption {private int paymentOptionId;private float amount;public int getPaymentOptionId() {return paymentOptionId;}public void setPaymentOptionId(int paymentOptionId) {this.paymentOptionId = paymentOptionId;}public float getAmount() {return amount;}public void setAmount(float amount) {this.amount = amount;}@Overridepublic int hashCode() {final int prime = 31;int result = 1;result = prime * result + Float.floatToIntBits(amount);result = prime * result + paymentOptionId;return result;}@Overridepublic boolean equals(Object obj) {if (this == obj)return true;if (obj == null)return false;if (getClass() != obj.getClass())return false;CustomPaymentOption other = (CustomPaymentOption) obj;if (Float.floatToIntBits(amount) != Float.floatToIntBits(other.amount))return false;if (paymentOptionId != other.paymentOptionId)return false;return true;}@Overridepublic String toString() {return "CustomPaymentOption [paymentOptionId=" + paymentOptionId + ", amount=" + amount + "]";}}