org.rr0.im.business.event.circumstance
Class WeightImpl
- public class WeightImpl
- implements Weight
Weight Reference Implementation.
- Author:
- Jérôme Beau
- Version: 19 juil. 2003 16:53:46
| Field Summary |
private double | weight The weight value, in kilograms. |
| Method Summary |
double | getValue(Locale locale) The weight value in pounds for UK and US locales, and in kilograms for others. |
double | toKilograms() |
double | toPounds() |
weight
private double weight
- The weight value, in kilograms.
WeightImpl
public WeightImpl(double weight)
getValue
public double getValue(Locale locale)
- The weight value in pounds for UK and US locales, and in kilograms for others.
- Parameters:
- locale The desired locale
- Returns: The weight value, according to the locale
toKilograms
public double toKilograms()
- Returns: The weight value, in kilograms.
toPounds
public double toPounds()
- Returns: The weight value, in pounds.