Graphene Implementation 1.0.0.CR3

org.jboss.arquillian.ajocado.waiting.conversion
Interface Convertor<F,T>

Type Parameters:
F - the from type (type which we want to convert from)
T - the to type (type which we want to convert to)
All Known Implementing Classes:
PassOnConvertor

public interface Convertor<F,T>

Convertor for converting the values from one type to another and vice versa.

Version:
$Revision$
Author:
Lukas Fryc

Method Summary
 F backwardConversion(T object)
          Convert from object of T type to F type.
 T forwardConversion(F object)
          Convert from object of F type to T type.
 

Method Detail

forwardConversion

T forwardConversion(F object)
Convert from object of F type to T type.

Parameters:
object - of F type to convert to T type
Returns:
the T type converted from F type

backwardConversion

F backwardConversion(T object)
Convert from object of T type to F type.

Parameters:
object - of T type to convert to F type
Returns:
the F type converted from T type

Graphene Implementation 1.0.0.CR3

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