org.robokind.api.common.utils
Interface Adapter<A,B>

Type Parameters:
A - type to adapt from
B - type to adapt to

public interface Adapter<A,B>

Converts and instance of type A to a new instance of type B. Adapter is used in the Messaging system for serialization.

Author:
Matthew Stevenson

Method Summary
 B adapt(A a)
          Adapts the given instance.
 

Method Detail

adapt

B adapt(A a)
Adapts the given instance.

Parameters:
a - instance to adapt
Returns:
an instance of B from the given instance of A.


Copyright © 2011. All Rights Reserved.