com.beust.jcommander.converters
Class BooleanConverter

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

public class BooleanConverter
extends BaseConverter<Boolean>

Converts a string to a boolean.

Author:
cbeust

Constructor Summary
BooleanConverter(String optionName)
           
 
Method Summary
 Boolean 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

BooleanConverter

public BooleanConverter(String optionName)
Method Detail

convert

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


Copyright © 2012. All Rights Reserved.