Class BaseTraversalStep<StepType,​DataType>

    • Method Detail

      • traverse

        public final Optional<DataType> traverse​(StepType tree,
                                                 TraversalStep.Operation op,
                                                 java.util.Iterator<java.lang.String> keys,
                                                 DataType data)
        Description copied from interface: TraversalStep
        The meat of the Traversal. Pull a key from the iterator, use it to make the traversal, and then call traverse on your child Traversal.
        Specified by:
        traverse in interface TraversalStep<StepType,​DataType>
        Parameters:
        tree - tree of data to walk
        op - the Operation to perform is this is the last node of the Traversal
        keys - keys to use
        data - the data to place if the operation is SET
        Returns:
        if SET, null for fail or the "data" object for ok. if GET, PANTS