data
Class StockIdentifier<T extends StockItem,CT extends CatalogItem>
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StockIdentifier
public StockIdentifier(String name)
- Create a new StockIdentifer.
- Parameters:
name
- Identifier name.
getName
public String getName()
- Get the identifier name.
- Returns:
- Identifier name.