Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
DeliveryCharge |
|
| 1.0;1 |
1 | package org.paneris.bibliomania; | |
2 | ||
3 | import java.text.NumberFormat; | |
4 | import java.util.Locale; | |
5 | ||
6 | import org.paneris.bibliomania.generated.DeliveryChargeBase; | |
7 | ||
8 | public class DeliveryCharge extends DeliveryChargeBase { | |
9 | 0 | public DeliveryCharge() {} |
10 | ||
11 | /* format a number in the locale currency | |
12 | */ | |
13 | public String displayPrice() { | |
14 | 0 | return new String(NumberFormat.getCurrencyInstance(Locale.UK). |
15 | format(getCharge().doubleValue())); | |
16 | } | |
17 | } |