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 Type
    Method
    Description
    boolean
    isUnwrappableAs(Class unwrapType)
    Can this wrapped item be unwrapped as the indicated type?
    <T> T
    unwrap(Class<T> unwrapType)
    Get the wrapped delegate item
  • Method Details

    • isUnwrappableAs

      boolean isUnwrappableAs(Class unwrapType)
      Can this wrapped item be unwrapped as the indicated type?
      Parameters:
      unwrapType - The type to check.
      Returns:
      True/false.
    • unwrap

      <T> T unwrap(Class<T> unwrapType)
      Get the wrapped delegate item
      Parameters:
      unwrapType - The java type as which to unwrap this instance.
      Returns:
      The unwrapped reference