org.apache.commons.convert
Class BooleanConverters.IntegerToBoolean

java.lang.Object
  extended by org.apache.commons.convert.AbstractConverter<Integer,Boolean>
      extended by org.apache.commons.convert.BooleanConverters.IntegerToBoolean
All Implemented Interfaces:
Converter<Integer,Boolean>, ConverterLoader
Enclosing class:
BooleanConverters

public static class BooleanConverters.IntegerToBoolean
extends AbstractConverter<Integer,Boolean>

An object that converts an Integer to a Boolean.


Constructor Summary
BooleanConverters.IntegerToBoolean()
           
 
Method Summary
 Boolean convert(Integer obj)
          Returns true if obj is non-zero, or false if obj is zero.
 
Methods inherited from class org.apache.commons.convert.AbstractConverter
canConvert, getSourceClass, getTargetClass, loadConverters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BooleanConverters.IntegerToBoolean

public BooleanConverters.IntegerToBoolean()
Method Detail

convert

public Boolean convert(Integer obj)
                throws ConversionException
Returns true if obj is non-zero, or false if obj is zero.

Parameters:
obj - The source Object to convert
Returns:
The converted Object
Throws:
ConversionException


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.