Package sleep.runtime

Class ProxyIterator

  • All Implemented Interfaces:
    java.util.Iterator

    public class ProxyIterator
    extends java.lang.Object
    implements java.util.Iterator
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected boolean modifyAllow  
      protected java.util.Iterator realIterator  
    • Constructor Summary

      Constructors 
      Constructor Description
      ProxyIterator​(java.util.Iterator iter, boolean _modifyAllow)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()  
      static boolean isIterator​(Scalar value)
      Check if the Scalar contains a Java iterator value
      java.lang.Object 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
    • Field Detail

      • realIterator

        protected java.util.Iterator realIterator
      • modifyAllow

        protected boolean modifyAllow
    • Constructor Detail

      • ProxyIterator

        public ProxyIterator​(java.util.Iterator iter,
                             boolean _modifyAllow)
    • Method Detail

      • isIterator

        public static boolean isIterator​(Scalar value)
        Check if the Scalar contains a Java iterator value
      • hasNext

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

        public java.lang.Object next()
        Specified by:
        next in interface java.util.Iterator
      • remove

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