Interface TypeConvertor


public interface TypeConvertor
Interface for a type convertor. A type convertor converts a Java object from one type to another. A type convertor implementation is required for each type of conversion.
Version:
$Revision: 7272 $ $Date: 2003-03-03 00:05:44 -0700 (Mon, 03 Mar 2003) $
Author:
Assaf Arkin
  • Method Summary

    Modifier and Type
    Method
    Description
    convert(Object object)
    Convert the object from one type to another.
  • Method Details

    • convert

      Object convert(Object object) throws ClassCastException
      Convert the object from one type to another.
      Parameters:
      object - The object to convert.
      Returns:
      The converted object.
      Throws:
      ClassCastException - The object is not of the type supported by this convertor.