Subversion Repositories SmartDukaan

Rev

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

Rev 21714 Rev 21924
Line 74... Line 74...
74
		return amount;
74
		return amount;
75
	}
75
	}
76
	public void setAmount(float amount) {
76
	public void setAmount(float amount) {
77
		this.amount = amount;
77
		this.amount = amount;
78
	}
78
	}
-
 
79
	
-
 
80
	
-
 
81
	@Override
-
 
82
	public int hashCode() {
-
 
83
		final int prime = 31;
-
 
84
		int result = 1;
-
 
85
		result = prime * result + Float.floatToIntBits(amount);
-
 
86
		result = prime * result + id;
-
 
87
		result = prime * result + orderId;
-
 
88
		result = prime * result + ((type == null) ? 0 : type.hashCode());
-
 
89
		return result;
-
 
90
	}
-
 
91
	@Override
-
 
92
	public boolean equals(Object obj) {
-
 
93
		if (this == obj)
-
 
94
			return true;
-
 
95
		if (obj == null)
-
 
96
			return false;
-
 
97
		if (getClass() != obj.getClass())
-
 
98
			return false;
-
 
99
		PaymentOption other = (PaymentOption) obj;
-
 
100
		if (Float.floatToIntBits(amount) != Float.floatToIntBits(other.amount))
-
 
101
			return false;
-
 
102
		if (id != other.id)
-
 
103
			return false;
-
 
104
		if (orderId != other.orderId)
-
 
105
			return false;
-
 
106
		if (type != other.type)
-
 
107
			return false;
-
 
108
		return true;
-
 
109
	}
79
	@Override
110
	@Override
80
	public String toString() {
111
	public String toString() {
81
		return "PaymentOption [id=" + id + ", orderId=" + orderId + ", type=" + type + ", amount=" + amount + "]";
112
		return "PaymentOption [id=" + id + ", orderId=" + orderId + ", type=" + type + ", amount=" + amount + "]";
82
	}
113
	}
83
	
114