Class LeafNodeIterator

  • All Implemented Interfaces:
    java.util.Iterator<LeafNode>

    public class LeafNodeIterator
    extends java.lang.Object
    implements java.util.Iterator<LeafNode>
    • Constructor Detail

      • LeafNodeIterator

        public LeafNodeIterator​(Art art,
                                Containers containers)
        constructor
        Parameters:
        art - the ART
        containers - the containers
      • LeafNodeIterator

        public LeafNodeIterator​(Art art,
                                boolean reverse,
                                Containers containers)
        constructor
        Parameters:
        art - the ART
        reverse - false: ascending order,true: the descending order
        containers - the containers
    • Method Detail

      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<LeafNode>
      • next

        public LeafNode next()
        Specified by:
        next in interface java.util.Iterator<LeafNode>
      • remove

        public void remove()
        Specified by:
        remove in interface java.util.Iterator<LeafNode>