Rev 24440 | 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;import java.time.LocalDateTime;public class SerialNumberDetail {private String serialNumber;private String insurance;private float amount;private String ram;private String memory;private LocalDateTime mfgDate;public String getRam() {return ram;}public void setRam(String ram) {this.ram = ram;}public String getMemory() {return memory;}public void setMemory(String memory) {this.memory = memory;}public LocalDateTime getMfgDate() {return mfgDate;}public void setMfgDate(LocalDateTime mfgDate) {this.mfgDate = mfgDate;}public String getSerialNumber() {return serialNumber;}public void setSerialNumber(String serialNumber) {this.serialNumber = serialNumber;}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 + ((insurance == null) ? 0 : insurance.hashCode());result = prime * result + ((memory == null) ? 0 : memory.hashCode());result = prime * result + ((mfgDate == null) ? 0 : mfgDate.hashCode());result = prime * result + ((ram == null) ? 0 : ram.hashCode());result = prime * result + ((serialNumber == null) ? 0 : serialNumber.hashCode());return result;}@Overridepublic boolean equals(Object obj) {if (this == obj)return true;if (obj == null)return false;if (getClass() != obj.getClass())return false;SerialNumberDetail other = (SerialNumberDetail) obj;if (Float.floatToIntBits(amount) != Float.floatToIntBits(other.amount))return false;if (insurance == null) {if (other.insurance != null)return false;} else if (!insurance.equals(other.insurance))return false;if (memory == null) {if (other.memory != null)return false;} else if (!memory.equals(other.memory))return false;if (mfgDate == null) {if (other.mfgDate != null)return false;} else if (!mfgDate.equals(other.mfgDate))return false;if (ram == null) {if (other.ram != null)return false;} else if (!ram.equals(other.ram))return false;if (serialNumber == null) {if (other.serialNumber != null)return false;} else if (!serialNumber.equals(other.serialNumber))return false;return true;}public String getInsurance() {return insurance;}public void setInsurance(String insurance) {this.insurance = insurance;}@Overridepublic String toString() {return "SerialNumberDetail [serialNumber=" + serialNumber + ", insurance=" + insurance + ", amount=" + amount+ ", ram=" + ram + ", memory=" + memory + ", mfgDate=" + mfgDate + "]";}}