Rev 21600 | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed
package com.spice.profitmandi.common.model;public class BillingDetail {private String invoiceNumber;private String airwayBillNumber;private float totalAmount;public String getInvoiceNumber() {return invoiceNumber;}public void setInvoiceNumber(String invoiceNumber) {this.invoiceNumber = invoiceNumber;}public String getAirwayBillNumber() {return airwayBillNumber;}public void setAirwayBillNumber(String airwayBillNumber) {this.airwayBillNumber = airwayBillNumber;}public float getTotalAmount() {return totalAmount;}public void setTotalAmount(float totalAmount) {this.totalAmount = totalAmount;}@Overridepublic int hashCode() {final int prime = 31;int result = 1;result = prime * result + ((airwayBillNumber == null) ? 0 : airwayBillNumber.hashCode());result = prime * result + ((invoiceNumber == null) ? 0 : invoiceNumber.hashCode());result = prime * result + Float.floatToIntBits(totalAmount);return result;}@Overridepublic boolean equals(Object obj) {if (this == obj)return true;if (obj == null)return false;if (getClass() != obj.getClass())return false;BillingDetail other = (BillingDetail) obj;if (airwayBillNumber == null) {if (other.airwayBillNumber != null)return false;} else if (!airwayBillNumber.equals(other.airwayBillNumber))return false;if (invoiceNumber == null) {if (other.invoiceNumber != null)return false;} else if (!invoiceNumber.equals(other.invoiceNumber))return false;if (Float.floatToIntBits(totalAmount) != Float.floatToIntBits(other.totalAmount))return false;return true;}@Overridepublic String toString() {return "BillingDetail [invoiceNumber=" + invoiceNumber + ", airwayBillNumber=" + airwayBillNumber+ ", totalAmount=" + totalAmount + "]";}}