All Implemented Interfaces:
Provider<Channel>, ProviderAsStack

public class ExtractSliceRange extends ChannelProviderUnary
Extracts slices from sliceStart (inclusive) to sliceEnd (inclusive).

If duplicate==true bean-property will ensure it is duplicated, and each channel has independent copies of the slices. If this is not needed duplicate==false results in less memory allocation and copying operations.

Author:
Owen Feehan
  • Constructor Details

    • ExtractSliceRange

      public ExtractSliceRange()
  • Method Details

    • checkMisconfigured

      public void checkMisconfigured(BeanInstanceMap defaultInstances) throws BeanMisconfiguredException
      Description copied from class: AnchorBean
      Checks that a bean's properties conform to expectations.
      Overrides:
      checkMisconfigured in class AnchorBean<ChannelProvider>
      Parameters:
      defaultInstances - all available default instances if the DefaultInstance annotation is used
      Throws:
      BeanMisconfiguredException - if the bean has not been configured properly as XML
    • createFromChannel

      public Channel createFromChannel(Channel channel)
      Description copied from class: ChannelProviderUnary
      Creates a Channel given the entity provided by the delegate.
      Specified by:
      createFromChannel in class ChannelProviderUnary
      Parameters:
      channel - the entity provided by the delegate.
      Returns:
      the created Channel that is returned by the provider.
    • getIndexStart

      public int getIndexStart()
      Slice index to start extracting from (inclusive).
    • setIndexStart

      public void setIndexStart(int indexStart)
      Slice index to start extracting from (inclusive).
    • getIndexEnd

      public int getIndexEnd()
      Slice index to end extracting from (inclusive).
    • setIndexEnd

      public void setIndexEnd(int indexEnd)
      Slice index to end extracting from (inclusive).