| Constructor and Description |
|---|
Product(String name,
String sku,
int cost) |
Product(String name,
String sku,
UnaryFunction<? super Integer,Money> price) |
| Modifier and Type | Method and Description |
|---|---|
String |
getName() |
Money |
getPrice(int quantity) |
UnaryFunction<? super Integer,Money> |
getPriceFunction() |
String |
getSku() |
void |
setName(String string) |
void |
setPriceFunction(UnaryFunction<? super Integer,Money> function) |
void |
setSku(String string) |
public UnaryFunction<? super Integer,Money> getPriceFunction()
public void setPriceFunction(UnaryFunction<? super Integer,Money> function)
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.