Interface Wrappable
- All Known Subinterfaces:
Media
- All Known Implementing Classes:
CategoryMediaXrefImpl
,MediaDto
,MediaImpl
,SkuMediaXrefImpl
public interface Wrappable
Utility interface for items that wrap an internal, delegate item
- Author:
- Jeff Fischer
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isUnwrappableAs
(Class unwrapType) Can this wrapped item be unwrapped as the indicated type?<T> T
Get the wrapped delegate item
-
Method Details
-
isUnwrappableAs
Can this wrapped item be unwrapped as the indicated type?- Parameters:
unwrapType
- The type to check.- Returns:
- True/false.
-
unwrap
Get the wrapped delegate item- Parameters:
unwrapType
- The java type as which to unwrap this instance.- Returns:
- The unwrapped reference
-