Class SingleThreadEventLoop.ChannelsReadOnlyIterator<T extends Channel>

java.lang.Object
io.netty.channel.SingleThreadEventLoop.ChannelsReadOnlyIterator<T>
All Implemented Interfaces:
java.util.Iterator<Channel>
Enclosing class:
SingleThreadEventLoop

protected static final class SingleThreadEventLoop.ChannelsReadOnlyIterator<T extends Channel> extends java.lang.Object implements java.util.Iterator<Channel>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final java.util.Iterator<T>
     
    private static final java.util.Iterator<java.lang.Object>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ChannelsReadOnlyIterator(java.lang.Iterable<T> channelIterable)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static <T> java.util.Iterator<T>
     
    boolean
     
     
    void
     

    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 Details

    • channelIterator

      private final java.util.Iterator<T extends Channel> channelIterator
    • EMPTY

      private static final java.util.Iterator<java.lang.Object> EMPTY
  • Constructor Details

    • ChannelsReadOnlyIterator

      public ChannelsReadOnlyIterator(java.lang.Iterable<T> channelIterable)
  • Method Details

    • hasNext

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

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

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

      public static <T> java.util.Iterator<T> empty()