Class LongestDurationIterator

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

    public class LongestDurationIterator
    extends java.lang.Object
    implements java.util.Iterator<IItem>
    Iterates from the root to the leaf, always selecting the event with the longest duration in each layer.
    • Constructor Detail

      • LongestDurationIterator

        public LongestDurationIterator​(ITreeNode<IItem> node)
    • Method Detail

      • hasNext

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

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

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