net.sf.easyweb4j.model.converters
Class BooleanConverter
java.lang.Object
net.sf.easyweb4j.model.converters.BooleanConverter
- All Implemented Interfaces:
- Converter
public class BooleanConverter
- extends Object
- implements Converter
Handles conversion of Booleans.
- Author:
- Chandra Sekar S
Constructor Summary |
BooleanConverter(boolean primitive)
Initializes whether it is expected to convert a boolean primitive type or
not. |
Method Summary |
Boolean |
convert(String[] values)
Converts given input strings (extracted from the parameter) to a basic
type. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BooleanConverter
public BooleanConverter(boolean primitive)
- Initializes whether it is expected to convert a boolean primitive type or
not.
- Parameters:
primitive
- Mentions whether the converter should use primitive type or
not.
convert
public Boolean convert(String[] values)
- Description copied from interface:
Converter
- Converts given input strings (extracted from the parameter) to a basic
type.
- Specified by:
convert
in interface Converter
- Parameters:
values
- The parameter values.
- Returns:
- The converted object.
Copyright © 2009-2010 Chandra Sekar S. All Rights Reserved.