public final class RateHelper extends Object
Constructor and Description |
---|
RateHelper() |
Modifier and Type | Method and Description |
---|---|
static Rate |
convertFromHours(TimeUnitDefaultsContainer defaults,
BigDecimal value,
TimeUnit targetUnits)
Convert a rate from amount per hour to an amount per target unit.
|
static Rate |
convertFromHours(TimeUnitDefaultsContainer defaults,
double value,
TimeUnit targetUnits)
Convert a rate from amount per hour to an amount per target unit.
|
static Rate |
convertFromHours(TimeUnitDefaultsContainer defaults,
Rate rate,
TimeUnit targetUnits)
Convert a rate from amount per hour to an amount per target unit.
|
static double |
convertToHours(TimeUnitDefaultsContainer defaults,
Rate rate)
Convert a rate to hours.
|
public static double convertToHours(TimeUnitDefaultsContainer defaults, Rate rate)
defaults
- defaults used for conversionrate
- rate to convertpublic static Rate convertFromHours(TimeUnitDefaultsContainer defaults, Rate rate, TimeUnit targetUnits)
defaults
- defaults used for conversionrate
- rate to converttargetUnits
- required unitspublic static Rate convertFromHours(TimeUnitDefaultsContainer defaults, BigDecimal value, TimeUnit targetUnits)
defaults
- defaults used for conversionvalue
- rate to converttargetUnits
- required unitspublic static Rate convertFromHours(TimeUnitDefaultsContainer defaults, double value, TimeUnit targetUnits)
defaults
- defaults used for conversionvalue
- rate to converttargetUnits
- required unitsCopyright © 2000–2024 Packwood Software. All rights reserved.