Holds information about a simple QBiC service product. This class is abstract and needs to be subclassed in order to create in instance of it.
Type | Name and description |
---|---|
java.util.Currency |
currency The currency of the price |
java.lang.String |
description Some text describing what the the product providing. |
ProductId |
productId The Id of the product. |
java.lang.String |
productName A descriptive product name. |
ProductUnit |
unit The unit of the product. |
double |
unitPrice The unit price in €/unit. |
Constructor and description |
---|
Product
(java.lang.String name, java.lang.String description, double unitPrice, ProductUnit unit, ProductId productId) Basic product constructor. |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
The currency of the price
Some text describing what the the product providing.
The Id of the product.
A descriptive product name.
The unit of the product.
The unit price in €/unit.
Basic product constructor. Checks that all passed arguments except productId are not null.
name
- The name of the product.description
- The description of what the product is about.unitPrice
- The price in € per unitunit
- The product unitproductId
- The Id of the productGroovy Documentation