com.atlassian.greenhopper.model.team
Class AllocationUtils
java.lang.Object
com.atlassian.greenhopper.model.team.AllocationUtils
public class AllocationUtils
- extends java.lang.Object
Utility methods to work with Allocation objects
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AllocationUtils
public AllocationUtils()
numberOfWorkingDays
public static int numberOfWorkingDays(DaysAllocation daysAllocation,
java.util.Date date)
numberOfWorkingDays
public static int numberOfWorkingDays(DaysAllocation daysAllocation,
org.joda.time.DateMidnight day)
getDaysVsDatesMapping
public static java.util.Map<java.lang.Integer,java.lang.Long> getDaysVsDatesMapping(DaysAllocation daysAllocation)
- This method works with correct working days - don't trust
- Parameters:
daysAllocation
-
getDayCount
public static int getDayCount(DaysAllocation daysAllocation,
org.joda.time.DateMidnight startCount,
org.joda.time.DateMidnight endCount)
- Method counts the number of working days between a two dates. TODO If the endCount date is after the end date of the days allocation, then
those dates are not counted.
Copyright © 2007-2011 Atlassian. All Rights Reserved.