Rev 22579 | 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 MopPriceModel {private boolean mop;private float price;public boolean isMop() {return mop;}public void setMop(boolean mop) {this.mop = mop;}public float getPrice() {return price;}public void setPrice(float price) {this.price = price;}@Overridepublic int hashCode() {final int prime = 31;int result = 1;result = prime * result + (mop ? 1231 : 1237);result = prime * result + Float.floatToIntBits(price);return result;}@Overridepublic boolean equals(Object obj) {if (this == obj)return true;if (obj == null)return false;if (getClass() != obj.getClass())return false;MopPriceModel other = (MopPriceModel) obj;if (mop != other.mop)return false;if (Float.floatToIntBits(price) != Float.floatToIntBits(other.price))return false;return true;}@Overridepublic String toString() {return "MopPriceModel [mop=" + mop + ", price=" + price + "]";}}