All Implemented Interfaces:
Provider<Channel>, ProviderAsStack
Direct Known Subclasses:
Convert, ConvertWithHistogram

public abstract class ConvertBase extends ChannelProviderUnary
Base class for channel providers that perform conversions on a single input channel.
  • Constructor Details

    • ConvertBase

      public ConvertBase()
  • Method Details

    • createPolicy

      protected ConversionPolicy createPolicy()
      Creates a ConversionPolicy based on the changeExisting property.
      Returns:
      a ConversionPolicy that determines whether to change the existing channel or create a new one.
    • isChangeExisting

      public boolean isChangeExisting()
      If true, the existing channel can be changed. If false, a new channel must be created for any change.
    • setChangeExisting

      public void setChangeExisting(boolean changeExisting)
      If true, the existing channel can be changed. If false, a new channel must be created for any change.