Class ExplodingSequence<T>

  • All Implemented Interfaces:
    Sequence<T>

    public class ExplodingSequence<T>
    extends YieldingSequenceBase<T>
    Wraps an underlying sequence and allows us to force it to explode at various points.
    • Constructor Detail

      • ExplodingSequence

        public ExplodingSequence​(Sequence<T> baseSequence,
                                 boolean getThrowsException,
                                 boolean closeThrowsException)
    • Method Detail

      • toYielder

        public <OutType> Yielder<OutType> toYielder​(OutType initValue,
                                                    YieldingAccumulator<OutType,​T> accumulator)
        Description copied from interface: Sequence
        Return a Yielder for accumulated sequence.
        Type Parameters:
        OutType - the type of accumulated value.
        Parameters:
        initValue - the initial value to pass along to start the accumulation.
        accumulator - the accumulator which is responsible for accumulating input values.
        Returns:
        a Yielder for accumulated sequence.
        See Also:
        Yielder
      • getCloseCount

        public long getCloseCount()