com.atlassian.jira.imports.csv.mappers
Class SimpleTimeEstimateConverter
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleTimeEstimateConverter
public SimpleTimeEstimateConverter()
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-2010 Atlassian. All Rights Reserved.