com.beust.jcommander.converters
Class LongConverter

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

public class LongConverter
extends BaseConverter<Long>

Convert a string to a long.

Author:
cbeust

Constructor Summary
LongConverter(String optionName)
           
 
Method Summary
 Long 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

LongConverter

public LongConverter(String optionName)
Method Detail

convert

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


Copyright © 2012. All Rights Reserved.