Interface Wrapper

All Known Implementing Classes:
GenericWrapper

public interface Wrapper
Interface that wrappers must implement.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    isWrapperFor(Class<?> clazz)
    Checks if this instance of Wrapper is a wrapper of the specified type.
    <T> T
    unwrap(Class<T> clazz)
    Unwraps the wrapped object.
  • Method Details

    • unwrap

      <T> T unwrap(Class<T> clazz)
      Unwraps the wrapped object.
      Type Parameters:
      T - unwrapped object type
      Parameters:
      clazz - unwrapped object type
      Returns:
      unwrapped object
    • isWrapperFor

      boolean isWrapperFor(Class<?> clazz)
      Checks if this instance of Wrapper is a wrapper of the specified type.
      Parameters:
      clazz - wrapped type
      Returns:
      true if the this wrapper is a wrapper for the specified type; otherwise false