Forge - Convert API 2.0.0.Alpha3

org.jboss.forge.convert
Interface Converter<SOURCE_TYPE,TARGET_TYPE>

All Known Implementing Classes:
AbstractConverter, CompositeConverter

@Exported
public interface Converter<SOURCE_TYPE,TARGET_TYPE>


Method Summary
 TARGET_TYPE convert(SOURCE_TYPE source)
          Convert the source of type SOURCE_TYPE to target type TARGET_TYPE.
 

Method Detail

convert

TARGET_TYPE convert(SOURCE_TYPE source)
Convert the source of type SOURCE_TYPE to target type TARGET_TYPE.

Parameters:
source - the source object to convert, which must be an instance of S
Returns:
the converted object, which must be an instance of T

Forge - Convert API 2.0.0.Alpha3

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.