com.beust.jcommander.converters
Class BigDecimalConverter

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

public class BigDecimalConverter
extends BaseConverter<BigDecimal>

Converts a String to a BigDecimal.

Author:
Angus Smithson

Constructor Summary
BigDecimalConverter(String optionName)
           
 
Method Summary
 BigDecimal 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

BigDecimalConverter

public BigDecimalConverter(String optionName)
Method Detail

convert

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


Copyright © 2012. All Rights Reserved.