Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
30051 manish 1
package com.spice.profitmandi.dao.model;
2
 
3
import java.time.LocalDateTime;
4
 
5
public class LastMonthImeiModel {
6
 
7
	private String imei;
8
	private float amount;
9
 
10
 
11
	private String description;
12
	private LocalDateTime createTimeStamp;
13
	public String getImei() {
14
		return imei;
15
	}
16
	public void setImei(String imei) {
17
		this.imei = imei;
18
	}
19
	public float getAmount() {
20
		return amount;
21
	}
22
	public void setAmount(float amount) {
23
		this.amount = amount;
24
	}
25
	public String getDescription() {
26
		return description;
27
	}
28
	public void setDescription(String description) {
29
		this.description = description;
30
	}
31
	public LocalDateTime getCreateTimeStamp() {
32
		return createTimeStamp;
33
	}
34
	public void setCreateTimeStamp(LocalDateTime createTimeStamp) {
35
		this.createTimeStamp = createTimeStamp;
36
	}
37
 
38
 
39
 
40
 
41
	@Override
42
	public int hashCode() {
43
		final int prime = 31;
44
		int result = 1;
45
		result = prime * result + Float.floatToIntBits(amount);
46
		result = prime * result + ((createTimeStamp == null) ? 0 : createTimeStamp.hashCode());
47
		result = prime * result + ((description == null) ? 0 : description.hashCode());
48
		result = prime * result + ((imei == null) ? 0 : imei.hashCode());
49
		return result;
50
	}
51
	@Override
52
	public boolean equals(Object obj) {
53
		if (this == obj)
54
			return true;
55
		if (obj == null)
56
			return false;
57
		if (getClass() != obj.getClass())
58
			return false;
59
		LastMonthImeiModel other = (LastMonthImeiModel) obj;
60
		if (Float.floatToIntBits(amount) != Float.floatToIntBits(other.amount))
61
			return false;
62
		if (createTimeStamp == null) {
63
			if (other.createTimeStamp != null)
64
				return false;
65
		} else if (!createTimeStamp.equals(other.createTimeStamp))
66
			return false;
67
		if (description == null) {
68
			if (other.description != null)
69
				return false;
70
		} else if (!description.equals(other.description))
71
			return false;
72
		if (imei == null) {
73
			if (other.imei != null)
74
				return false;
75
		} else if (!imei.equals(other.imei))
76
			return false;
77
		return true;
78
	}
79
	public LastMonthImeiModel(String imei, float amount, String description, LocalDateTime createTimeStamp) {
80
		super();
81
		this.imei = imei;
82
		this.amount = amount;
83
		this.description = description;
84
		this.createTimeStamp = createTimeStamp;
85
	}
86
	@Override
87
	public String toString() {
88
		return "LastMonthImeiModel [imei=" + imei + ", amount=" + amount + ", description=" + description
89
				+ ", createTimeStamp=" + createTimeStamp + "]";
90
	}
91
 
92
 
93
 
94
}