|
|||||||||
| Home >> All >> org >> cantaloop >> tools >> [ conversion overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.cantaloop.tools.conversion
Class IntegerConverter

java.lang.Objectorg.cantaloop.tools.conversion.AbstractConverter
org.cantaloop.tools.conversion.IntegerConverter
- All Implemented Interfaces:
- Converter
- public class IntegerConverter
- extends AbstractConverter
Converts a object of type java.lang.String into
a object of type java.lang.Integer. The converter
respects the locale-specific representation of a integer number.
- Version:
- @version@ ($Revision: 1.3 $)
| Field Summary |
| Fields inherited from class org.cantaloop.tools.conversion.AbstractConverter |
m_inputTypes, m_outputTypes |
| Constructor Summary | |
IntegerConverter()
|
|
| Method Summary | |
java.lang.Object |
convert(java.lang.Object o,
java.lang.Class type)
Converts the input object to the desired output type as long as the input object is an instance of one of the classes in the getInputtypes and the output type or a subtype
is contained in getOutputTypes.If the desired output type is a supertype of more than one of the output types, one of these subtype will be chosen (the choice may be random). |
java.lang.Object |
convert(java.lang.String s,
java.lang.Class type)
|
| Methods inherited from class org.cantaloop.tools.conversion.AbstractConverter |
checkTypes, getInputTypes, getOutputTypes, throwException |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
IntegerConverter
public IntegerConverter()
| Method Detail |
convert
public java.lang.Object convert(java.lang.Object o, java.lang.Class type) throws ConversionException
- Description copied from interface:
Converter - Converts the input object to the desired output type as long as
the input object is an instance of one of the classes in the
getInputtypesand the output type or a subtype is contained ingetOutputTypes.
If the desired output type is a supertype of more than one of the output types, one of these subtype will be chosen (the choice may be random).
convert
public java.lang.Object convert(java.lang.String s, java.lang.Class type) throws ConversionException
|
|||||||||
| Home >> All >> org >> cantaloop >> tools >> [ conversion overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC