Class AbstractWrapper<W>

java.lang.Object
org.knime.core.ui.wrapper.AbstractWrapper<W>
All Implemented Interfaces:
UI, Wrapper<W>
Direct Known Subclasses:
ConnectionContainerWrapper, InteractiveWebViewsResultWrapper, NodeContainerWrapper, NodeInPortWrapper, NodeOutPortWrapper, SingleInteractiveWebViewResultWrapper, WorkflowContextWrapper, WorkflowDefWrapper, WorkflowInPortWrapper, WorkflowOutPortWrapper, WorkflowPersistorWrapper

public abstract class AbstractWrapper<W> extends Object implements Wrapper<W>
Abstract implementation of the Wrapper interface that keeps the wrapped object as local member.
Author:
Martin Horn, University of Konstanz
  • Constructor Details

    • AbstractWrapper

      protected AbstractWrapper(W wrappedObj)
      Parameters:
      wrappedObj - object to be wrapped. This very same object is returned at the unwrap() method.
  • Method Details

    • unwrap

      public final W unwrap()
      Unwraps the wrapped object.
      Specified by:
      unwrap in interface Wrapper<W>
      Returns:
      the wrapped object
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public final String toString()
      Overrides:
      toString in class Object