Class CalendarUnitConverter
java.lang.Object
overit.geocallapp.wfm.project.util.CalendarUnitConverter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BigDecimalconvert(Long sourceValue, Long sourceCalendarUnit, Long targetCalendarUnit, BOProjectProfile profile) static BigDecimalconvert(Long sourceValue, Long sourceCalendarUnit, Long targetCalendarUnit, BOProjectProfile profile, int precision, RoundingMode roundingMode) protected static BigDecimalconvertDaysToHours(BigDecimal sourceValue, BOProjectProfile profile, int precision, RoundingMode roundingMode) protected static BigDecimalconvertDaysToMinutes(BigDecimal sourceValue, BOProjectProfile profile) protected static BigDecimalconvertDaysToMonths(BigDecimal sourceValue, BOProjectProfile profile, int precision, RoundingMode roundingMode) protected static BigDecimalconvertDaysToWeeks(BigDecimal sourceValue, BOProjectProfile profile, int precision, RoundingMode roundingMode) protected static BigDecimalconvertHoursToDays(BigDecimal sourceValue, BOProjectProfile profile, int precision, RoundingMode roundingMode) protected static BigDecimalconvertHoursToMinutes(BigDecimal sourceValue) protected static BigDecimalconvertHoursToMonths(BigDecimal sourceValue, BOProjectProfile profile, int precision, RoundingMode roundingMode) protected static BigDecimalconvertHoursToWeeks(BigDecimal sourceValue, BOProjectProfile profile, int precision, RoundingMode roundingMode) protected static BigDecimalconvertMinutesToDays(BigDecimal sourceValue, BOProjectProfile profile, int precision, RoundingMode roundingMode) protected static BigDecimalconvertMinutesToHours(BigDecimal sourceValue, int precision, RoundingMode roundingMode) protected static BigDecimalconvertMinutesToMonths(BigDecimal sourceValue, BOProjectProfile profile, int precision, RoundingMode roundingMode) protected static BigDecimalconvertMinutesToWeeks(BigDecimal sourceValue, BOProjectProfile profile, int precision, RoundingMode roundingMode) protected static BigDecimalconvertMonthsToDays(BigDecimal sourceValue, BOProjectProfile profile) protected static BigDecimalconvertMonthsToHours(BigDecimal sourceValue, BOProjectProfile profile, int precision, RoundingMode roundingMode) protected static BigDecimalconvertMonthsToMinutes(BigDecimal sourceValue, BOProjectProfile profile) protected static BigDecimalconvertMonthsToWeeks(BigDecimal sourceValue, BOProjectProfile profile, int precision, RoundingMode roundingMode) protected static BigDecimalconvertWeeksToDays(BigDecimal sourceValue, BOProjectProfile profile, int precision, RoundingMode roundingMode) protected static BigDecimalconvertWeeksToHours(BigDecimal sourceValue, BOProjectProfile profile) protected static BigDecimalconvertWeeksToMinutes(BigDecimal sourceValue, BOProjectProfile profile, int precision, RoundingMode roundingMode) protected static BigDecimalconvertWeeksToMonths(BigDecimal sourceValue, BOProjectProfile profile, int precision, RoundingMode roundingMode) protected static LonggetDayMinutes(BOProjectProfile profile) protected static LonggetDayMonth(BOProjectProfile profile) protected static LonggetWeeksHours(BOProjectProfile profile)
-
Constructor Details
-
CalendarUnitConverter
public CalendarUnitConverter()
-
-
Method Details
-
convert
public static BigDecimal convert(Long sourceValue, Long sourceCalendarUnit, Long targetCalendarUnit, BOProjectProfile profile) -
convert
public static BigDecimal convert(Long sourceValue, Long sourceCalendarUnit, Long targetCalendarUnit, BOProjectProfile profile, int precision, RoundingMode roundingMode) -
convertMinutesToHours
protected static BigDecimal convertMinutesToHours(BigDecimal sourceValue, int precision, RoundingMode roundingMode) -
convertMinutesToDays
protected static BigDecimal convertMinutesToDays(BigDecimal sourceValue, BOProjectProfile profile, int precision, RoundingMode roundingMode) -
convertDaysToMinutes
-
getDayMinutes
-
convertMinutesToWeeks
protected static BigDecimal convertMinutesToWeeks(BigDecimal sourceValue, BOProjectProfile profile, int precision, RoundingMode roundingMode) -
convertMinutesToMonths
protected static BigDecimal convertMinutesToMonths(BigDecimal sourceValue, BOProjectProfile profile, int precision, RoundingMode roundingMode) -
convertDaysToMonths
protected static BigDecimal convertDaysToMonths(BigDecimal sourceValue, BOProjectProfile profile, int precision, RoundingMode roundingMode) -
convertMonthsToDays
-
getDayMonth
-
convertHoursToMinutes
-
convertHoursToDays
protected static BigDecimal convertHoursToDays(BigDecimal sourceValue, BOProjectProfile profile, int precision, RoundingMode roundingMode) -
convertHoursToWeeks
protected static BigDecimal convertHoursToWeeks(BigDecimal sourceValue, BOProjectProfile profile, int precision, RoundingMode roundingMode) -
convertWeeksToHours
-
getWeeksHours
-
convertHoursToMonths
protected static BigDecimal convertHoursToMonths(BigDecimal sourceValue, BOProjectProfile profile, int precision, RoundingMode roundingMode) -
convertDaysToHours
protected static BigDecimal convertDaysToHours(BigDecimal sourceValue, BOProjectProfile profile, int precision, RoundingMode roundingMode) -
convertDaysToWeeks
protected static BigDecimal convertDaysToWeeks(BigDecimal sourceValue, BOProjectProfile profile, int precision, RoundingMode roundingMode) -
convertWeeksToMinutes
protected static BigDecimal convertWeeksToMinutes(BigDecimal sourceValue, BOProjectProfile profile, int precision, RoundingMode roundingMode) -
convertWeeksToDays
protected static BigDecimal convertWeeksToDays(BigDecimal sourceValue, BOProjectProfile profile, int precision, RoundingMode roundingMode) -
convertWeeksToMonths
protected static BigDecimal convertWeeksToMonths(BigDecimal sourceValue, BOProjectProfile profile, int precision, RoundingMode roundingMode) -
convertMonthsToMinutes
protected static BigDecimal convertMonthsToMinutes(BigDecimal sourceValue, BOProjectProfile profile) -
convertMonthsToHours
protected static BigDecimal convertMonthsToHours(BigDecimal sourceValue, BOProjectProfile profile, int precision, RoundingMode roundingMode) -
convertMonthsToWeeks
protected static BigDecimal convertMonthsToWeeks(BigDecimal sourceValue, BOProjectProfile profile, int precision, RoundingMode roundingMode)
-