Package | Description |
---|---|
be.ac.ulb.infof307.g02.controllers | |
be.ac.ulb.infof307.g02.models |
Modifier and Type | Method and Description |
---|---|
void |
CreateProductController.createProduct(java.lang.String productName,
Product.Unit productUnit,
double productLipids,
double productProteins,
double productCarbohydrates)
Creates a product and adds it in the database.
|
Modifier and Type | Field and Description |
---|---|
private Product.Unit |
Product.unit |
Modifier and Type | Method and Description |
---|---|
static Product.Unit |
Product.Unit.create(java.lang.String unitName) |
Product.Unit |
Product.getUnit() |
static Product.Unit |
Product.Unit.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Product.Unit[] |
Product.Unit.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Constructor and Description |
---|
Product(java.lang.String name,
Product.Unit unit,
double lipids,
double proteins,
double carbohydrates)
Product constructor.
|