Subversion Repositories SmartDukaan

Rev

Rev 27067 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 27067 Rev 27346
Line 8... Line 8...
8
	private int fofoId;
8
	private int fofoId;
9
	private WalletReferenceType walletReferenceType;
9
	private WalletReferenceType walletReferenceType;
10
	private double amount;
10
	private double amount;
11
	private String description;
11
	private String description;
12
	private LocalDateTime businessDate;
12
	private LocalDateTime businessDate;
-
 
13
	private int reference;
13
	@Override
14
	@Override
14
	public String toString() {
15
	public String toString() {
15
		return "WalletHistoryModel [fofoId=" + fofoId + ", walletReferenceType=" + walletReferenceType + ", amount="
16
		return "WalletHistoryModel [fofoId=" + fofoId + ", walletReferenceType=" + walletReferenceType + ", amount="
16
				+ amount + ", description=" + description + ", businessDate=" + businessDate + "]";
17
				+ amount + ", description=" + description + ", businessDate=" + businessDate + ", reference="
-
 
18
				+ reference + "]";
17
	}
19
	}
18
	public int getFofoId() {
20
	public int getFofoId() {
19
		return fofoId;
21
		return fofoId;
20
	}
22
	}
21
	public void setFofoId(int fofoId) {
23
	public void setFofoId(int fofoId) {
22
		this.fofoId = fofoId;
24
		this.fofoId = fofoId;
23
	}
25
	}
-
 
26
	
-
 
27
	
-
 
28
	@Override
-
 
29
	public int hashCode() {
-
 
30
		final int prime = 31;
-
 
31
		int result = 1;
-
 
32
		long temp;
-
 
33
		temp = Double.doubleToLongBits(amount);
-
 
34
		result = prime * result + (int) (temp ^ (temp >>> 32));
-
 
35
		result = prime * result + ((businessDate == null) ? 0 : businessDate.hashCode());
-
 
36
		result = prime * result + ((description == null) ? 0 : description.hashCode());
-
 
37
		result = prime * result + fofoId;
-
 
38
		result = prime * result + reference;
-
 
39
		result = prime * result + ((walletReferenceType == null) ? 0 : walletReferenceType.hashCode());
-
 
40
		return result;
-
 
41
	}
-
 
42
	@Override
-
 
43
	public boolean equals(Object obj) {
-
 
44
		if (this == obj)
-
 
45
			return true;
-
 
46
		if (obj == null)
-
 
47
			return false;
-
 
48
		if (getClass() != obj.getClass())
-
 
49
			return false;
-
 
50
		WalletHistoryModel other = (WalletHistoryModel) obj;
-
 
51
		if (Double.doubleToLongBits(amount) != Double.doubleToLongBits(other.amount))
-
 
52
			return false;
-
 
53
		if (businessDate == null) {
-
 
54
			if (other.businessDate != null)
-
 
55
				return false;
-
 
56
		} else if (!businessDate.equals(other.businessDate))
-
 
57
			return false;
-
 
58
		if (description == null) {
-
 
59
			if (other.description != null)
-
 
60
				return false;
-
 
61
		} else if (!description.equals(other.description))
-
 
62
			return false;
-
 
63
		if (fofoId != other.fofoId)
-
 
64
			return false;
-
 
65
		if (reference != other.reference)
-
 
66
			return false;
-
 
67
		if (walletReferenceType != other.walletReferenceType)
-
 
68
			return false;
-
 
69
		return true;
-
 
70
	}
-
 
71
	public int getReference() {
-
 
72
		return reference;
-
 
73
	}
-
 
74
	public void setReference(int reference) {
-
 
75
		this.reference = reference;
-
 
76
	}
24
	public WalletReferenceType getWalletReferenceType() {
77
	public WalletReferenceType getWalletReferenceType() {
25
		return walletReferenceType;
78
		return walletReferenceType;
26
	}
79
	}
27
	public void setWalletReferenceType(WalletReferenceType walletReferenceType) {
80
	public void setWalletReferenceType(WalletReferenceType walletReferenceType) {
28
		this.walletReferenceType = walletReferenceType;
81
		this.walletReferenceType = walletReferenceType;