com.beust.jcommander.converters
Class DoubleConverter

java.lang.Object
  extended by com.beust.jcommander.converters.BaseConverter<Double>
      extended by com.beust.jcommander.converters.DoubleConverter
All Implemented Interfaces:
IStringConverter<Double>

public class DoubleConverter
extends BaseConverter<Double>

Convert a string to a double.

Author:
acornejo

Constructor Summary
DoubleConverter(String optionName)
           
 
Method Summary
 Double convert(String value)
           
 
Methods inherited from class com.beust.jcommander.converters.BaseConverter
getErrorString, getOptionName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DoubleConverter

public DoubleConverter(String optionName)
Method Detail

convert

public Double convert(String value)
Returns:
an object of type created from the parameter value.


Copyright © 2012. All Rights Reserved.