commercestorepricing.PsmIDCollection

Represents a collection of PSM (Product Selling Model) IDs.

Methods 

global get(Integer index) 

Retrieves the PSM ID at the specified index.

Parameters 

ParamDescription
indexThe index of the PSM ID to retrieve.

Returns 

TypeDescription
StringThe PSM ID at the specified index.

global iterator() 

Returns an iterator over the collection of PSM IDs

Returns 

TypeDescription
IteratorAn iterator that can be used to iterate through the collection of PSM IDs.

global indexOf(String psmID) 

Returns the index of the specified PSM ID in the collection.

Parameters 

ParamDescription
psmIDThe PSM ID

Returns 

TypeDescription
IntegerThe index of the specified PSM ID in the collection, or -1 if the item is not found in the collection.

global getFromList(Integer index) 

Retrieves the PSM ID at the specified index from the collection.

Parameters 

ParamDescription
indexThe index of the PSM ID to retrieve.

Returns 

TypeDescription
StringThe PSM ID at the specified index.

global getIterator() 

Returns an iterator over list of psmIDs.

Returns 

TypeDescription
IteratorAn iterator that can be used to iterate through the list.

global size() 

Returns the number of PSM IDs in the list.

Returns 

TypeDescription
IntegerNumber of PSM IDs in the list.

global isEmpty() 

Checks if there are IDs in the list.

Returns 

TypeDescription
BooleanTrue if there are psmIds in the list, false otherwise

global getIndexOf(String psmID) 

Returns the index of a psmID in the list.

Parameters 

ParamDescription
psmIDProduct selling model Id

Returns 

TypeDescription
Integerindex of psmID in the list or -1 if the Id is not found in the list

global equals(Object obj) 

Compares the argument with this PsmIDCollection object and returns true if they are equal

global hashCode() 

Generates and returns the hash code of this PsmIDCollection object

Returns 

TypeDescription
Integerhash code

Newer Version Available

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

DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!