intarsys runtime library

de.intarsys.tools.converter
Class BooleanFromNumberConverter

java.lang.Object
  extended by de.intarsys.tools.converter.BooleanFromNumberConverter
All Implemented Interfaces:
IConverter<Number,Boolean>

public class BooleanFromNumberConverter
extends Object
implements IConverter<Number,Boolean>

Convert a Number to a Boolean


Constructor Summary
BooleanFromNumberConverter()
           
 
Method Summary
 Boolean convert(Number source)
          Convert the actual source object.
 Class<?> getSourceType()
          The source type the converter supports.
 Class<?> getTargetType()
          The target type the converter supports.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BooleanFromNumberConverter

public BooleanFromNumberConverter()
Method Detail

convert

public Boolean convert(Number source)
                throws ConversionException
Description copied from interface: IConverter
Convert the actual source object.

Specified by:
convert in interface IConverter<Number,Boolean>
Returns:
The converted object.
Throws:
ConversionException

getSourceType

public Class<?> getSourceType()
Description copied from interface: IConverter
The source type the converter supports.

Specified by:
getSourceType in interface IConverter<Number,Boolean>
Returns:
The source type the converter supports.

getTargetType

public Class<?> getTargetType()
Description copied from interface: IConverter
The target type the converter supports.

Specified by:
getTargetType in interface IConverter<Number,Boolean>
Returns:
The target type the converter supports.

intarsys runtime library

Copyright © 2012 intarsys consulting GmbH. All Rights Reserved.