com.atlassian.jira.issue.worklog
Class WorkRatio

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

public class WorkRatio
extends java.lang.Object


Constructor Summary
WorkRatio()
           
 
Method Summary
static java.lang.String getPaddedWorkRatio(org.ofbiz.core.entity.GenericValue issue)
           
static java.lang.String getPaddedWorkRatioString(java.lang.String ratio)
           
static long getWorkRatio(org.ofbiz.core.entity.GenericValue issue)
           
static long getWorkRatio(Issue issue)
           
static long getWorkRatio(java.lang.Long originalEstimate, java.lang.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(java.lang.Long originalEstimate,
                                java.lang.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 java.lang.String getPaddedWorkRatio(org.ofbiz.core.entity.GenericValue issue)

getPaddedWorkRatioString

public static java.lang.String getPaddedWorkRatioString(java.lang.String ratio)


Copyright © 2002-2010 Atlassian. All Rights Reserved.