Class BudgetIterator<P extends GISPrimitive,​N extends AbstractGISTreeSetNode<P,​N>>

  • Type Parameters:
    P - is the type of the data inside the tree.
    N - the type of the nodes.
    All Implemented Interfaces:
    Iterator<P>

    class BudgetIterator<P extends GISPrimitive,​N extends AbstractGISTreeSetNode<P,​N>>
    extends Object
    implements Iterator<P>
    This class provides a broad-first iterator supplying the data elements according to a maximum number of data to reply, the budget.
    Since:
    14.0
    Version:
    17.0 2020-01-04 14:41:53
    Author:
    Stéphane GALLAND
    Maven Group Id:
    org.arakhne.afc.gis
    Maven Artifact Id:
    giscore
    • Constructor Detail

      • BudgetIterator

        BudgetIterator​(Tree<P,​N> tree,
                       Rectangle2afp<?,​?,​?,​?,​?,​?> clipBounds,
                       int budget)
        Constructor.
        Parameters:
        tree - is the tree to iterator on.
        clipBounds - is the bounds outside which the elements will not be replied
        budget - is the maximal size of the replied list. If this value is negative, all the elements will be replied.