Class BasicWrapper<T>

    • Field Detail

      • UNSOPPORTED_OPERATION

        protected static final boolean UNSOPPORTED_OPERATION
        See Also:
        Constant Field Values
    • Constructor Detail

      • BasicWrapper

        public BasicWrapper​(T wrapped)
    • Method Detail

      • throwUnsupported

        public static void throwUnsupported​(String message)
      • unwrapModel

        public T unwrapModel()
        Description copied from interface: Wrapper
        Unwrap the underlying object
        Specified by:
        unwrapModel in interface Wrapper<T>
        Returns:
        the wrapped object
      • wrapModel

        public void wrapModel​(T wrapped)
        Description copied from interface: Wrapper
        Wraps the give objects
        Specified by:
        wrapModel in interface Wrapper<T>
        Parameters:
        wrapped - objects to wrap
      • unwrap

        public T unwrap()
        Description copied from interface: Wrapper
        Recursively unwrap the wrapped object until it is not instance of Wrapper anymore.
        Specified by:
        unwrap in interface Wrapper<T>
        Returns:
        the underlying object