com.beust.jcommander.converters
Class FloatConverter

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

public class FloatConverter
extends BaseConverter<Float>

Convert a string to a float.

Author:
acornejo

Constructor Summary
FloatConverter(String optionName)
           
 
Method Summary
 Float 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

FloatConverter

public FloatConverter(String optionName)
Method Detail

convert

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


Copyright © 2012. All Rights Reserved.