Rev 21925 | Rev 23364 | 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 String type;private float amount;public String getType() {return type;}public void setType(String type) {this.type = type;}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 + ((type == null) ? 0 : type.hashCode());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 (type != other.type)return false;return true;}@Overridepublic String toString() {return "CustomPaymentOption [type=" + type + ", amount=" + amount + "]";}}