Subversion Repositories SmartDukaan

Rev

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

Rev 23965 Rev 26607
Line 1... Line 1...
1
package com.spice.profitmandi.web.req;
1
package com.spice.profitmandi.dao.model;
2
 
2
 
-
 
3
import java.util.List;
3
 
4
 
4
public class AddCartRequest
5
public class AddCartRequest
5
{
6
{
6
    private CartItems[] cartItems;
7
    private List<CartItem> cartItems;
7
 
-
 
8
    public CartItems[] getCartItems ()
-
 
9
    {
-
 
10
        return cartItems;
-
 
11
    }
-
 
12
 
-
 
13
    public void setCartItems (CartItems[] cartItems)
-
 
14
    {
-
 
15
        this.cartItems = cartItems;
-
 
16
    }
-
 
17
 
8
 
18
    @Override
9
    @Override
19
    public String toString()
10
	public int hashCode() {
-
 
11
		final int prime = 31;
-
 
12
		int result = 1;
-
 
13
		result = prime * result + ((cartItems == null) ? 0 : cartItems.hashCode());
-
 
14
		return result;
-
 
15
	}
-
 
16
 
-
 
17
	@Override
-
 
18
	public boolean equals(Object obj) {
-
 
19
		if (this == obj)
-
 
20
			return true;
-
 
21
		if (obj == null)
-
 
22
			return false;
-
 
23
		if (getClass() != obj.getClass())
-
 
24
			return false;
-
 
25
		AddCartRequest other = (AddCartRequest) obj;
-
 
26
		if (cartItems == null) {
-
 
27
			if (other.cartItems != null)
-
 
28
				return false;
-
 
29
		} else if (!cartItems.equals(other.cartItems))
-
 
30
			return false;
-
 
31
		return true;
-
 
32
	}
-
 
33
 
-
 
34
	public List<CartItem> getCartItems() {
-
 
35
		return cartItems;
-
 
36
	}
-
 
37
 
-
 
38
	public void setCartItems(List<CartItem> cartItems) {
-
 
39
		this.cartItems = cartItems;
20
    {
40
	}
-
 
41
 
-
 
42
	@Override
-
 
43
	public String toString() {
21
        return "AddCartRequest [cartItems = "+cartItems+"]";
44
		return "AddCartRequest [cartItems=" + cartItems + "]";
22
    }
45
	}
23
}
46
}
24
47