Class IncrementalIterator

    • Constructor Detail

      • IncrementalIterator

        public IncrementalIterator​(NodeInfo start,
                                   Function<NodeInfo,​NodeInfo> stepper)
        Create an IncrementalIterator
        Parameters:
        start - the first item to be returned by the iterator
        stepper - a function that computes the next item, given the current item, or returns null at the end of the sequence.
    • Method Detail

      • next

        public NodeInfo next()
        Get the next item in the sequence
        Specified by:
        next in interface AxisIterator
        Specified by:
        next in interface SequenceIterator
        Returns:
        the next item, or null if there are no more items to be returned.