org.freehep.util
Interface ObjectConverter
-
public interface ObjectConverterObject converter which allows conversion of objects of one class into another.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description java.lang.Objectconvert(java.lang.Object source)Returns the converted source object of a class compatible with the one returned under convertsTo().java.lang.ClassconvertsTo(java.lang.Object source)Returns the class the given source object can be converterd to by this converter.
-
-
-
Method Detail
-
convertsTo
java.lang.Class convertsTo(java.lang.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
java.lang.Object convert(java.lang.Object source)
Returns the converted source object of a class compatible with the one returned under convertsTo().
-
-
DMelt 3.0 © DataMelt by jWork.ORG