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
| Param | Description |
|---|
index | The index of the PSM ID to retrieve. |
Returns
| Type | Description |
|---|
| String | The PSM ID at the specified index. |
global iterator()
Returns an iterator over the collection of PSM IDs
Returns
| Type | Description |
|---|
| Iterator | An 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
| Param | Description |
|---|
psmID | The PSM ID |
Returns
| Type | Description |
|---|
| Integer | The 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
| Param | Description |
|---|
index | The index of the PSM ID to retrieve. |
Returns
| Type | Description |
|---|
| String | The PSM ID at the specified index. |
global getIterator()
Returns an iterator over list of psmIDs.
Returns
| Type | Description |
|---|
| Iterator | An iterator that can be used to iterate through the list. |
global size()
Returns the number of PSM IDs in the list.
Returns
| Type | Description |
|---|
| Integer | Number of PSM IDs in the list. |
global isEmpty()
Checks if there are IDs in the list.
Returns
| Type | Description |
|---|
| Boolean | True if there are psmIds in the list, false otherwise |
global getIndexOf(String psmID)
Returns the index of a psmID in the list.
Parameters
| Param | Description |
|---|
psmID | Product selling model Id |
Returns
| Type | Description |
|---|
| Integer | index 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
| Type | Description |
|---|
| Integer | hash code |