Class DescendantBoxSpliterator

  • All Implemented Interfaces:
    Spliterator<Box>

    public class DescendantBoxSpliterator
    extends Object
    implements Spliterator<Box>
    A spliterator that can be used to create a stream of descendant boxes in breadth first order.

    NOTE: This is likely slower than simply creating a box list recursively for small number of descendants but gets relatively faster (and uses less memory) as the list of descendants increases in size.