com.atlassian.jira.imports.csv.mappers
Class SimpleTimeEstimateConverter

java.lang.Object
  extended by com.atlassian.jira.imports.csv.mappers.SimpleTimeEstimateConverter
All Implemented Interfaces:
TimeEstimateConverter

public class SimpleTimeEstimateConverter
extends Object
implements TimeEstimateConverter

Simple time estimate converter that assumes the string represents a long value.


Constructor Summary
SimpleTimeEstimateConverter()
           
 
Method Summary
 Long convertEstimate(String estimate)
          Converts the estimate string into a long
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleTimeEstimateConverter

public SimpleTimeEstimateConverter()
Method Detail

convertEstimate

public Long convertEstimate(String estimate)
Converts the estimate string into a long

Specified by:
convertEstimate in interface TimeEstimateConverter
Parameters:
estimate - the string representation of a long that is the number of seconds.
Returns:
a java.lang.Long representation of the estimate
Throws:
NumberFormatException - thrown if the passed in string is not a valid long


Copyright © 2002-2009 Atlassian. All Rights Reserved.