Subversion Repositories SmartDukaan

Rev

Rev 24440 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 24440 Rev 25778
Line 1... Line 1...
1
package com.spice.profitmandi.common.model;
1
package com.spice.profitmandi.common.model;
2
 
2
 
-
 
3
import java.time.LocalDateTime;
-
 
4
 
3
public class SerialNumberDetail {
5
public class SerialNumberDetail {
4
	private String serialNumber;
6
	private String serialNumber;
5
	private String insurance;
7
	private String insurance;
6
	private float amount;
8
	private float amount;
-
 
9
	private String ram;
-
 
10
	private String memory;
-
 
11
	private LocalDateTime mfgDate;
7
	
12
	
-
 
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
	}
8
	public String getSerialNumber() {
31
	public String getSerialNumber() {
9
		return serialNumber;
32
		return serialNumber;
10
	}
33
	}
11
	public void setSerialNumber(String serialNumber) {
34
	public void setSerialNumber(String serialNumber) {
12
		this.serialNumber = serialNumber;
35
		this.serialNumber = serialNumber;
Line 23... Line 46...
23
	public int hashCode() {
46
	public int hashCode() {
24
		final int prime = 31;
47
		final int prime = 31;
25
		int result = 1;
48
		int result = 1;
26
		result = prime * result + Float.floatToIntBits(amount);
49
		result = prime * result + Float.floatToIntBits(amount);
27
		result = prime * result + ((insurance == null) ? 0 : insurance.hashCode());
50
		result = prime * result + ((insurance == null) ? 0 : insurance.hashCode());
-
 
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());
28
		result = prime * result + ((serialNumber == null) ? 0 : serialNumber.hashCode());
54
		result = prime * result + ((serialNumber == null) ? 0 : serialNumber.hashCode());
29
		return result;
55
		return result;
30
	}
56
	}
31
	@Override
57
	@Override
32
	public boolean equals(Object obj) {
58
	public boolean equals(Object obj) {
Line 42... Line 68...
42
		if (insurance == null) {
68
		if (insurance == null) {
43
			if (other.insurance != null)
69
			if (other.insurance != null)
44
				return false;
70
				return false;
45
		} else if (!insurance.equals(other.insurance))
71
		} else if (!insurance.equals(other.insurance))
46
			return false;
72
			return false;
-
 
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;
47
		if (serialNumber == null) {
88
		if (serialNumber == null) {
48
			if (other.serialNumber != null)
89
			if (other.serialNumber != null)
49
				return false;
90
				return false;
50
		} else if (!serialNumber.equals(other.serialNumber))
91
		} else if (!serialNumber.equals(other.serialNumber))
51
			return false;
92
			return false;
Line 58... Line 99...
58
		this.insurance = insurance;
99
		this.insurance = insurance;
59
	}
100
	}
60
	@Override
101
	@Override
61
	public String toString() {
102
	public String toString() {
62
		return "SerialNumberDetail [serialNumber=" + serialNumber + ", insurance=" + insurance + ", amount=" + amount
103
		return "SerialNumberDetail [serialNumber=" + serialNumber + ", insurance=" + insurance + ", amount=" + amount
63
				+ "]";
104
				+ ", ram=" + ram + ", memory=" + memory + ", mfgDate=" + mfgDate + "]";
64
	}
105
	}
65
	
106
	
66
	
107
	
67
}
108
}