Interface SplitGenerator<I,​O>

    • Method Detail

      • setData

        void setData​(I value)
        Sets the original data.
        Parameters:
        value - the data
      • getData

        I getData()
        Returns the original data.
        Returns:
        the data
      • initializeIterator

        void initializeIterator()
        Initializes the iterator (gets implicitly called, when calling next()).
      • hasNext

        boolean hasNext()
        Returns true if the iteration has more elements. (In other words, returns true if next would return an element rather than throwing an exception.)
        Specified by:
        hasNext in interface Iterator<I>
        Returns:
        true if the iterator has more elements.
      • next

        O next()
        Returns the next element in the iteration.
        Specified by:
        next in interface Iterator<I>
        Returns:
        the next element in the iteration.
        Throws:
        NoSuchElementException - iteration has no more elements.
      • remove

        void remove()
        Unsupported.
        Specified by:
        remove in interface Iterator<I>
      • toString

        String toString()
        Returns a short description of the generator.
        Overrides:
        toString in class Object
        Returns:
        a short description