Class ExtensionUtils
java.lang.Object
ca.phon.extensions.ExtensionUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> T
getExtension
(Object obj, Class<T> ext) Get the specified extension if it existsstatic boolean
hasExtension
(Object obj, Class<?> ext) Check if the given object has the given extension.static boolean
isExtendable
(Object obj) Checks if the given object implementsIExtendable
static <T> T
putExtension
(Object obj, Class<T> ext, T impl) Put the specified extention in the given object.
-
Constructor Details
-
ExtensionUtils
public ExtensionUtils()
-
-
Method Details
-
isExtendable
Checks if the given object implementsIExtendable
- Returns:
true
if the object implementsIExtendable
,false
otherwise
-
hasExtension
-
getExtension
-
putExtension
-