Package ca.uhn.fhir.util.adapters
Interface IAdaptable
public interface IAdaptable
Generic version of Eclipse IAdaptable interface.
-
Method Summary
Modifier and TypeMethodDescriptiondefault <T> Optional
<T> getAdapter
(Class<T> theTargetType) Get an adapter of requested type.
-
Method Details
-
getAdapter
Get an adapter of requested type.- Parameters:
theTargetType
- the desired type of the adapter- Returns:
- an adapter of theTargetType if possible, or empty.
-