Module org.dyn4j

Class JointIterator

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

    final class JointIterator
    extends java.lang.Object
    implements java.util.Iterator<Joint>
    Represents an iterator for Joints in a World.
    Since:
    3.2.0
    Version:
    3.2.0
    Author:
    William Bittle
    • Constructor Summary

      Constructors 
      Constructor Description
      JointIterator​(World world)
      Minimal constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()  
      Joint 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

      • JointIterator

        public JointIterator​(World world)
        Minimal constructor.
        Parameters:
        world - the world to iterate over
    • Method Detail

      • hasNext

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

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

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