SalesPoint v3.3 API

data
Class StockIdentifier<T extends StockItem,CT extends CatalogItem>

java.lang.Object
  extended by data.StockIdentifier<T,CT>
Type Parameters:
T - The type of stock item that is associated to the Stock identified.
CT - The type of catalog item that is associated to the Catalog that is associated to the Stock identified.

public class StockIdentifier<T extends StockItem,CT extends CatalogItem>
extends Object

Identifier class for Stocks. This can be used for getting correctly typed Stocks from the shop using it's getStock() method. Thus, a StockIdentifier is a combination of a name and the two type parameters a Stock posseses.

Since:
3.3
Author:
Thomas Ryssel

Constructor Summary
StockIdentifier(String name)
          Create a new StockIdentifer.
 
Method Summary
 String getName()
          Get the identifier name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StockIdentifier

public StockIdentifier(String name)
Create a new StockIdentifer.

Parameters:
name - Identifier name.
Method Detail

getName

public String getName()
Get the identifier name.

Returns:
Identifier name.

SalesPoint v3.3 API