Package tenapull.sync

Class ReadWriteLock.ReadThreadsIterator

java.lang.Object
tenapull.sync.ReadWriteLock.ReadThreadsIterator
All Implemented Interfaces:
java.util.Iterator<java.lang.Thread>
Enclosing class:
ReadWriteLock<O,​R>

public class ReadWriteLock.ReadThreadsIterator
extends java.lang.Object
implements java.util.Iterator<java.lang.Thread>
A special iterator to handle dynamically changing state of read lock threads, for the ReadThreadsSet
  • Method Summary

    Modifier and Type Method Description
    boolean hasNext()  
    java.lang.Thread next()  

    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, remove
  • Method Details

    • hasNext

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

      public java.lang.Thread next()
      Specified by:
      next in interface java.util.Iterator<java.lang.Thread>