Subversion Repositories SmartDukaan

Rev

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

Rev 26665 Rev 34163
Line 6... Line 6...
6
{
6
{
7
    private BulkPricing[] bulkPricing;
7
    private BulkPricing[] bulkPricing;
8
    private double sellingPrice;
8
    private double sellingPrice;
9
    private String color;
9
    private String color;
10
    private long item_id;
10
    private long item_id;
-
 
11
	private long catalog_id;
11
    private String sellingPriceType;
12
    private String sellingPriceType;
12
    private double netPriceAfterCashBack;
13
    private double netPriceAfterCashBack;
13
    private double cash_back;
14
    private double cash_back;
14
    private int maxQuantity;
15
    private int maxQuantity;
15
    private int cash_back_type;
16
    private int cash_back_type;
Line 19... Line 20...
19
    private double mrp;
20
    private double mrp;
20
    
21
    
21
	@Override
22
	@Override
22
	public String toString() {
23
	public String toString() {
23
		return "AvailabilityInfo [bulkPricing=" + Arrays.toString(bulkPricing) + ", sellingPrice=" + sellingPrice
24
		return "AvailabilityInfo [bulkPricing=" + Arrays.toString(bulkPricing) + ", sellingPrice=" + sellingPrice
24
				+ ", color=" + color + ", item_id=" + item_id + ", sellingPriceType=" + sellingPriceType
25
				+ ", color=" + color + ", item_id=" + item_id + ", catalog_id=" + catalog_id + ", sellingPriceType=" + sellingPriceType
25
				+ ", netPriceAfterCashBack=" + netPriceAfterCashBack + ", cash_back=" + cash_back + ", maxQuantity="
26
				+ ", netPriceAfterCashBack=" + netPriceAfterCashBack + ", cash_back=" + cash_back + ", maxQuantity="
26
				+ maxQuantity + ", cash_back_type=" + cash_back_type + ", quantityStep=" + quantityStep
27
				+ maxQuantity + ", cash_back_type=" + cash_back_type + ", quantityStep=" + quantityStep
27
				+ ", availability=" + availability + ", minBuyQuantity=" + minBuyQuantity + ", mrp=" + mrp + "]";
28
				+ ", availability=" + availability + ", minBuyQuantity=" + minBuyQuantity + ", mrp=" + mrp + "]";
28
	}
29
	}
29
	public BulkPricing[] getBulkPricing() {
30
	public BulkPricing[] getBulkPricing() {
Line 102... Line 103...
102
		return minBuyQuantity;
103
		return minBuyQuantity;
103
	}
104
	}
104
	public void setMinBuyQuantity(int minBuyQuantity) {
105
	public void setMinBuyQuantity(int minBuyQuantity) {
105
		this.minBuyQuantity = minBuyQuantity;
106
		this.minBuyQuantity = minBuyQuantity;
106
	}
107
	}
-
 
108
 
-
 
109
	public long getCatalog_id() {
-
 
110
		return catalog_id;
-
 
111
	}
-
 
112
 
-
 
113
	public void setCatalog_id(long catalog_id) {
-
 
114
		this.catalog_id = catalog_id;
-
 
115
	}
-
 
116
 
107
	@Override
117
	@Override
108
	public int hashCode() {
118
	public int hashCode() {
109
		final int prime = 31;
119
		final int prime = 31;
110
		int result = 1;
120
		int result = 1;
111
		result = prime * result + availability;
121
		result = prime * result + availability;
Line 114... Line 124...
114
		temp = Double.doubleToLongBits(cash_back);
124
		temp = Double.doubleToLongBits(cash_back);
115
		result = prime * result + (int) (temp ^ (temp >>> 32));
125
		result = prime * result + (int) (temp ^ (temp >>> 32));
116
		result = prime * result + cash_back_type;
126
		result = prime * result + cash_back_type;
117
		result = prime * result + ((color == null) ? 0 : color.hashCode());
127
		result = prime * result + ((color == null) ? 0 : color.hashCode());
118
		result = prime * result + (int) (item_id ^ (item_id >>> 32));
128
		result = prime * result + (int) (item_id ^ (item_id >>> 32));
-
 
129
		result = prime * result + (int) (catalog_id ^ (catalog_id >>> 32));
119
		result = prime * result + maxQuantity;
130
		result = prime * result + maxQuantity;
120
		result = prime * result + minBuyQuantity;
131
		result = prime * result + minBuyQuantity;
121
		temp = Double.doubleToLongBits(mrp);
132
		temp = Double.doubleToLongBits(mrp);
122
		result = prime * result + (int) (temp ^ (temp >>> 32));
133
		result = prime * result + (int) (temp ^ (temp >>> 32));
123
		temp = Double.doubleToLongBits(netPriceAfterCashBack);
134
		temp = Double.doubleToLongBits(netPriceAfterCashBack);
Line 150... Line 161...
150
				return false;
161
				return false;
151
		} else if (!color.equals(other.color))
162
		} else if (!color.equals(other.color))
152
			return false;
163
			return false;
153
		if (item_id != other.item_id)
164
		if (item_id != other.item_id)
154
			return false;
165
			return false;
-
 
166
		if (catalog_id != other.catalog_id)
-
 
167
			return false;
155
		if (maxQuantity != other.maxQuantity)
168
		if (maxQuantity != other.maxQuantity)
156
			return false;
169
			return false;
157
		if (minBuyQuantity != other.minBuyQuantity)
170
		if (minBuyQuantity != other.minBuyQuantity)
158
			return false;
171
			return false;
159
		if (Double.doubleToLongBits(mrp) != Double.doubleToLongBits(other.mrp))
172
		if (Double.doubleToLongBits(mrp) != Double.doubleToLongBits(other.mrp))