Class NodeIterable

  • All Implemented Interfaces:
    com.vladsch.flexmark.util.collection.iteration.ReversibleIterable<Node>, com.vladsch.flexmark.util.collection.iteration.ReversiblePeekingIterable<Node>, Iterable<Node>

    public class NodeIterable
    extends Object
    implements com.vladsch.flexmark.util.collection.iteration.ReversiblePeekingIterable<Node>
    • Field Detail

      • EMPTY

        public static final com.vladsch.flexmark.util.collection.iteration.ReversiblePeekingIterable<Node> EMPTY
    • Constructor Detail

      • NodeIterable

        public NodeIterable​(Node firstNode,
                            Node lastNode,
                            boolean reversed)
    • Method Detail

      • iterator

        @NotNull
        public @NotNull com.vladsch.flexmark.util.collection.iteration.ReversiblePeekingIterator<Node> iterator()
        Specified by:
        iterator in interface Iterable<Node>
        Specified by:
        iterator in interface com.vladsch.flexmark.util.collection.iteration.ReversibleIterable<Node>
        Specified by:
        iterator in interface com.vladsch.flexmark.util.collection.iteration.ReversiblePeekingIterable<Node>
      • reversed

        @NotNull
        public @NotNull com.vladsch.flexmark.util.collection.iteration.ReversiblePeekingIterable<Node> reversed()
        Specified by:
        reversed in interface com.vladsch.flexmark.util.collection.iteration.ReversibleIterable<Node>
        Specified by:
        reversed in interface com.vladsch.flexmark.util.collection.iteration.ReversiblePeekingIterable<Node>
      • isReversed

        public boolean isReversed()
        Specified by:
        isReversed in interface com.vladsch.flexmark.util.collection.iteration.ReversibleIterable<Node>
      • reversedIterator

        @NotNull
        public @NotNull com.vladsch.flexmark.util.collection.iteration.ReversiblePeekingIterator<Node> reversedIterator()
        Specified by:
        reversedIterator in interface com.vladsch.flexmark.util.collection.iteration.ReversibleIterable<Node>
        Specified by:
        reversedIterator in interface com.vladsch.flexmark.util.collection.iteration.ReversiblePeekingIterable<Node>