org.robokind.api.common.utils
Class ComplexAdapter<A,B,C>
java.lang.Object
org.robokind.api.common.utils.ComplexAdapter<A,B,C>
- All Implemented Interfaces:
- Adapter<A,C>
public final class ComplexAdapter<A,B,C>
- extends Object
- implements Adapter<A,C>
- Author:
- Matthew Stevenson
|
Method Summary |
C |
adapt(A a)
Adapts the given instance. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ComplexAdapter
public ComplexAdapter(Adapter<A,B> first,
Adapter<B,C> second)
adapt
public final C adapt(A a)
- Description copied from interface:
Adapter
- Adapts the given instance.
- Specified by:
adapt in interface Adapter<A,C>
- Parameters:
a - instance to adapt
- Returns:
- an instance of B from the given instance of A.
Copyright © 2011-2012. All Rights Reserved.