Package com.helixframework.generics
Interface Wrapper
- All Known Implementing Classes:
GenericWrapper
public interface Wrapper
Interface that wrappers must implement.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanisWrapperFor(Class<?> clazz) Checks if this instance ofWrapperis a wrapper of the specified type.<T> TUnwraps the wrapped object.
-
Method Details
-
unwrap
Unwraps the wrapped object.- Type Parameters:
T- unwrapped object type- Parameters:
clazz- unwrapped object type- Returns:
- unwrapped object
-
isWrapperFor
Checks if this instance ofWrapperis a wrapper of the specified type.- Parameters:
clazz- wrapped type- Returns:
trueif the this wrapper is a wrapper for the specified type; otherwisefalse
-