Class BoundedIterator<T>

    • Constructor Detail

      • BoundedIterator

        public BoundedIterator​(Iterator<T> aIterator,
                               int aLengthBounds)
        Decorates the given Iterator with the given length bounds.
        Parameters:
        aIterator - The Iterator to which to apply the given length bounds.
        aLengthBounds - The length bounds to be applied to the given iterator;
    • Method Detail

      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface Iterator<T>
      • next

        public T next()
        Specified by:
        next in interface Iterator<T>