|
Holger's Java API |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface UnitConverter
allows to convert some measurement into another unit, provided that the units are convertible (such as meter and miles)
| Method Summary | |
|---|---|
Measurable |
convert(Measurable m,
Unit targetUnit)
converts the given measurable into the target unit and returns the resulting measurable |
| Method Detail |
|---|
Measurable convert(Measurable m,
Unit targetUnit)
throws IllegalArgumentException,
UnsupportedOperationException
m - the original measurable to be convertedtargetUnit - the desired unit
IllegalArgumentException - if this converter cannot handle any of the given units
UnsupportedOperationException - if the units of the given measurable and the target unit are not convertible
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||