CartExtension.CartItemList

List of CartExtension.CartItem objects.

Methods 

global CartItem get(Integer index) 

Returns the list element stored at the specified index. return CartExtension.CartItem

global Iterator<CartItem> iterator() 

Returns an instance of an iterator for this list.

Returns 

TypeDescription
Iterator<CartItem>

global Integer indexOf(CartItem cartItem) 

Returns the index of the first occurrence of the specified element in this list. If this list does not contain the element, returns -1.

Returns 

TypeDescription
Integer

global Integer size() 

Returns the number of elements in the list.

Returns 

TypeDescription
Integer

global Boolean isEmpty() 

Returns true if the list has zero elements.

Returns 

TypeDescription
Boolean

global void add(CommerceObject commerceObject) 

Adds an element to the list.

Returns 

TypeDescription
void

global void remove(CommerceObject commerceObject) 

Removes an element from the list.

Returns 

TypeDescription
void

global void clear() 

Removes all elements from a list, consequently setting the list's length to zero.

Returns 

TypeDescription
void

Newer Version Available

This content describes an older version of this product. View Latest