com.beust.jcommander.converters
Class IntegerConverter

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

public class IntegerConverter
extends BaseConverter<Integer>

Convert a string to an integer.

Author:
cbeust

Constructor Summary
IntegerConverter(String optionName)
           
 
Method Summary
 Integer 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

IntegerConverter

public IntegerConverter(String optionName)
Method Detail

convert

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


Copyright © 2012. All Rights Reserved.