Interface Adaptable

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      <T> T getAdapter​(java.lang.Class<T> adapter)
      Returns an object which is an instance of the given class parameter associated with this object or null if no association exists.
    • Method Detail

      • getAdapter

        <T> T getAdapter​(java.lang.Class<T> adapter)

        Returns an object which is an instance of the given class parameter associated with this object or null if no association exists.

        Parameters:
        adapter - the lookup class
        Returns:
        an object that can be cast to the given class or null if there is no adapter associated with the given class.