Subversion Repositories SmartDukaan

Rev

Rev 24440 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
22215 ashik.ali 1
package com.spice.profitmandi.common.model;
2
 
25778 amit.gupta 3
import java.time.LocalDateTime;
4
 
22215 ashik.ali 5
public class SerialNumberDetail {
6
	private String serialNumber;
24440 amit.gupta 7
	private String insurance;
22215 ashik.ali 8
	private float amount;
25778 amit.gupta 9
	private String ram;
10
	private String memory;
11
	private LocalDateTime mfgDate;
22215 ashik.ali 12
 
25778 amit.gupta 13
	public String getRam() {
14
		return ram;
15
	}
16
	public void setRam(String ram) {
17
		this.ram = ram;
18
	}
19
	public String getMemory() {
20
		return memory;
21
	}
22
	public void setMemory(String memory) {
23
		this.memory = memory;
24
	}
25
	public LocalDateTime getMfgDate() {
26
		return mfgDate;
27
	}
28
	public void setMfgDate(LocalDateTime mfgDate) {
29
		this.mfgDate = mfgDate;
30
	}
22215 ashik.ali 31
	public String getSerialNumber() {
32
		return serialNumber;
33
	}
34
	public void setSerialNumber(String serialNumber) {
35
		this.serialNumber = serialNumber;
36
	}
24440 amit.gupta 37
 
22215 ashik.ali 38
	public float getAmount() {
39
		return amount;
40
	}
41
	public void setAmount(float amount) {
42
		this.amount = amount;
43
	}
22869 ashik.ali 44
 
22215 ashik.ali 45
	@Override
46
	public int hashCode() {
47
		final int prime = 31;
48
		int result = 1;
49
		result = prime * result + Float.floatToIntBits(amount);
24440 amit.gupta 50
		result = prime * result + ((insurance == null) ? 0 : insurance.hashCode());
25778 amit.gupta 51
		result = prime * result + ((memory == null) ? 0 : memory.hashCode());
52
		result = prime * result + ((mfgDate == null) ? 0 : mfgDate.hashCode());
53
		result = prime * result + ((ram == null) ? 0 : ram.hashCode());
22215 ashik.ali 54
		result = prime * result + ((serialNumber == null) ? 0 : serialNumber.hashCode());
55
		return result;
56
	}
57
	@Override
58
	public boolean equals(Object obj) {
59
		if (this == obj)
60
			return true;
61
		if (obj == null)
62
			return false;
63
		if (getClass() != obj.getClass())
64
			return false;
65
		SerialNumberDetail other = (SerialNumberDetail) obj;
66
		if (Float.floatToIntBits(amount) != Float.floatToIntBits(other.amount))
67
			return false;
24440 amit.gupta 68
		if (insurance == null) {
69
			if (other.insurance != null)
70
				return false;
71
		} else if (!insurance.equals(other.insurance))
22215 ashik.ali 72
			return false;
25778 amit.gupta 73
		if (memory == null) {
74
			if (other.memory != null)
75
				return false;
76
		} else if (!memory.equals(other.memory))
77
			return false;
78
		if (mfgDate == null) {
79
			if (other.mfgDate != null)
80
				return false;
81
		} else if (!mfgDate.equals(other.mfgDate))
82
			return false;
83
		if (ram == null) {
84
			if (other.ram != null)
85
				return false;
86
		} else if (!ram.equals(other.ram))
87
			return false;
22215 ashik.ali 88
		if (serialNumber == null) {
89
			if (other.serialNumber != null)
90
				return false;
91
		} else if (!serialNumber.equals(other.serialNumber))
92
			return false;
93
		return true;
94
	}
24440 amit.gupta 95
	public String getInsurance() {
96
		return insurance;
97
	}
98
	public void setInsurance(String insurance) {
99
		this.insurance = insurance;
100
	}
22215 ashik.ali 101
	@Override
102
	public String toString() {
103
		return "SerialNumberDetail [serialNumber=" + serialNumber + ", insurance=" + insurance + ", amount=" + amount
25778 amit.gupta 104
				+ ", ram=" + ram + ", memory=" + memory + ", mfgDate=" + mfgDate + "]";
22215 ashik.ali 105
	}
106
 
107
 
108
}