org.freehep.util
Interface ObjectConverter


public interface ObjectConverter

Object converter which allows conversion of objects of one class into another.

Version:
$Id: ObjectConverter.java 8584 2006-08-10 23:06:37Z duns $
Author:
Mark Donszelmann

Method Summary
 Object convert(Object source)
          Returns the converted source object of a class compatible with the one returned under convertsTo().
 Class convertsTo(Object source)
          Returns the class the given source object can be converterd to by this converter.
 

Method Detail

convertsTo

Class convertsTo(Object source)
Returns the class the given source object can be converterd to by this converter. Returns null if the given source object cannot be converted.


convert

Object convert(Object source)
Returns the converted source object of a class compatible with the one returned under convertsTo().



Copyright © 2012. All Rights Reserved.