Class MovingDotList

  • All Implemented Interfaces:
    Iterable<MovingDot>

    public class MovingDotList
    extends Object
    implements Iterable<MovingDot>
    MovingDotList is a front only linked list of MovingDots
    • Constructor Detail

      • MovingDotList

        public MovingDotList()
        Constructor
    • Method Detail

      • add

        public void add​(MovingDot m)
        Adds a MovingDot to the List
        Parameters:
        m - the MovingDot to add
      • iterator

        public Iterator<MovingDot> iterator()
        Returns an iterator over the elements in this list in proper sequence.
        Specified by:
        iterator in interface Iterable<MovingDot>