Class AdapterTools


  • public class AdapterTools
    extends java.lang.Object
    A tool class for handling adapter objects.
    • Constructor Summary

      Constructors 
      Constructor Description
      AdapterTools()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      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.