Module org.dyn4j

Class FixtureIterator<T extends Fixture>

  • Type Parameters:
    T - the Fixture type
    All Implemented Interfaces:
    java.util.Iterator<T>

    final class FixtureIterator<T extends Fixture>
    extends java.lang.Object
    implements java.util.Iterator<T>
    Represents an iterator for Fixtures in a Collidable.
    Since:
    3.2.0
    Version:
    3.2.0
    Author:
    William Bittle
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()  
      T next()  
      void remove()  
      • Methods inherited from class java.lang.Object

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

        forEachRemaining
    • Constructor Detail

      • FixtureIterator

        public FixtureIterator​(Collidable<T> collidable)
        Minimal constructor.
        Parameters:
        collidable - the collidable to iterate over
    • Method Detail

      • hasNext

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

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

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