com.atlassian.jira.issue.worklog
Class WorkRatio

java.lang.Object
  extended by com.atlassian.jira.issue.worklog.WorkRatio

public class WorkRatio
extends Object


Constructor Summary
WorkRatio()
           
 
Method Summary
static String getPaddedWorkRatio(org.ofbiz.core.entity.GenericValue issue)
           
static String getPaddedWorkRatioString(String ratio)
           
static long getWorkRatio(org.ofbiz.core.entity.GenericValue issue)
           
static long getWorkRatio(Issue issue)
           
static long getWorkRatio(Long originalEstimate, Long timespent)
          Returns the work ratio as a whole number percentage, rounded down.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkRatio

public WorkRatio()
Method Detail

getWorkRatio

public static long getWorkRatio(Issue issue)

getWorkRatio

public static long getWorkRatio(org.ofbiz.core.entity.GenericValue issue)

getWorkRatio

public static long getWorkRatio(Long originalEstimate,
                                Long timespent)
Returns the work ratio as a whole number percentage, rounded down. Note that we round down to be consistent with PercentageGraphModel.RowPercentageCalculator.getPercentage(long)

Parameters:
originalEstimate - the original estimate of the issue
timespent - the time spent on the issue
Returns:
the work ratio percentage

getPaddedWorkRatio

public static String getPaddedWorkRatio(org.ofbiz.core.entity.GenericValue issue)

getPaddedWorkRatioString

public static String getPaddedWorkRatioString(String ratio)


Copyright © 2002-2013 Atlassian. All Rights Reserved.