Class GoToQuery.ProgramGroup

  • All Implemented Interfaces:
    java.lang.Iterable<Program>
    Enclosing class:
    GoToQuery

    protected class GoToQuery.ProgramGroup
    extends java.lang.Object
    implements java.lang.Iterable<Program>
    A class to maintain our collection of open programs and to provide an Iterator when we need to process the collection. The iterator() method has a side-effect of putting the current program at the front of the Iterator so that the current program is always searched first when processing the collection of programs.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Iterator<Program> iterator()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Constructor Detail

      • ProgramGroup

        public ProgramGroup​(Program[] programs,
                            Program navigatableProgram)
    • Method Detail

      • iterator

        public java.util.Iterator<Program> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<Program>