Interface IAdaptable


public interface IAdaptable
Generic version of Eclipse IAdaptable interface.
  • Method Summary

    Modifier and Type
    Method
    Description
    default <T> Optional<T>
    getAdapter(Class<T> theTargetType)
    Get an adapter of requested type.
  • Method Details

    • getAdapter

      @Nonnull default <T> Optional<T> getAdapter(@Nonnull Class<T> theTargetType)
      Get an adapter of requested type.
      Parameters:
      theTargetType - the desired type of the adapter
      Returns:
      an adapter of theTargetType if possible, or empty.