de.intarsys.tools.adapter
Class AdapterTools

java.lang.Object
  extended by de.intarsys.tools.adapter.AdapterTools

public class AdapterTools
extends java.lang.Object

A tool class for handling adapter objects.


Constructor Summary
AdapterTools()
           
 
Method Summary
static
<T> T
getAdapter(java.lang.Object object, java.lang.Class<T> clazz)
          An object of type clazz that represents object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdapterTools

public AdapterTools()
Method Detail

getAdapter

public static <T> T getAdapter(java.lang.Object object,
                               java.lang.Class<T> clazz)
An object of type clazz that represents object.

This method should return null if adaption is not possible.

Type Parameters:
T -
Parameters:
object -
clazz -
Returns:
An object of type clazz that represents object.