org.robokind.api.common.utils
Class PolymorphicAdapter<A,B>

java.lang.Object
  extended by org.robokind.api.common.utils.PolymorphicAdapter<A,B>
All Implemented Interfaces:
org.jflux.api.core.Adapter<A,B>

public class PolymorphicAdapter<A,B>
extends Object
implements org.jflux.api.core.Adapter<A,B>

Author:
Matthew Stevenson

Nested Class Summary
static interface PolymorphicAdapter.AdapterKeyMap<T>
           
 
Constructor Summary
PolymorphicAdapter(PolymorphicAdapter.AdapterKeyMap<A> keyMap)
           
 
Method Summary
 B adapt(A a)
           
 void addAdapter(String adaptClass, org.jflux.api.core.Adapter<A,B> adapter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolymorphicAdapter

public PolymorphicAdapter(PolymorphicAdapter.AdapterKeyMap<A> keyMap)
Method Detail

addAdapter

public void addAdapter(String adaptClass,
                       org.jflux.api.core.Adapter<A,B> adapter)

adapt

public B adapt(A a)
Specified by:
adapt in interface org.jflux.api.core.Adapter<A,B>


Copyright © 2011-2013. All Rights Reserved.