Class SelectedSelectionKeySet

java.lang.Object
java.util.AbstractCollection<java.nio.channels.SelectionKey>
java.util.AbstractSet<java.nio.channels.SelectionKey>
io.netty.channel.nio.SelectedSelectionKeySet
All Implemented Interfaces:
java.lang.Iterable<java.nio.channels.SelectionKey>, java.util.Collection<java.nio.channels.SelectionKey>, java.util.Set<java.nio.channels.SelectionKey>

final class SelectedSelectionKeySet extends java.util.AbstractSet<java.nio.channels.SelectionKey>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) java.nio.channels.SelectionKey[]
     
    (package private) int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    add(java.nio.channels.SelectionKey o)
     
    boolean
    contains(java.lang.Object o)
     
    private void
     
    java.util.Iterator<java.nio.channels.SelectionKey>
     
    boolean
    remove(java.lang.Object o)
     
    (package private) void
     
    (package private) void
    reset(int start)
     
    int
     

    Methods inherited from class java.util.AbstractSet

    equals, hashCode, removeAll

    Methods inherited from class java.util.AbstractCollection

    addAll, clear, containsAll, isEmpty, retainAll, toArray, toArray, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.util.Collection

    parallelStream, removeIf, stream

    Methods inherited from interface java.lang.Iterable

    forEach

    Methods inherited from interface java.util.Set

    addAll, clear, containsAll, isEmpty, retainAll, spliterator, toArray, toArray
  • Field Details

    • keys

      java.nio.channels.SelectionKey[] keys
    • size

      int size
  • Constructor Details

    • SelectedSelectionKeySet

      SelectedSelectionKeySet()
  • Method Details

    • add

      public boolean add(java.nio.channels.SelectionKey o)
      Specified by:
      add in interface java.util.Collection<java.nio.channels.SelectionKey>
      Specified by:
      add in interface java.util.Set<java.nio.channels.SelectionKey>
      Overrides:
      add in class java.util.AbstractCollection<java.nio.channels.SelectionKey>
    • remove

      public boolean remove(java.lang.Object o)
      Specified by:
      remove in interface java.util.Collection<java.nio.channels.SelectionKey>
      Specified by:
      remove in interface java.util.Set<java.nio.channels.SelectionKey>
      Overrides:
      remove in class java.util.AbstractCollection<java.nio.channels.SelectionKey>
    • contains

      public boolean contains(java.lang.Object o)
      Specified by:
      contains in interface java.util.Collection<java.nio.channels.SelectionKey>
      Specified by:
      contains in interface java.util.Set<java.nio.channels.SelectionKey>
      Overrides:
      contains in class java.util.AbstractCollection<java.nio.channels.SelectionKey>
    • size

      public int size()
      Specified by:
      size in interface java.util.Collection<java.nio.channels.SelectionKey>
      Specified by:
      size in interface java.util.Set<java.nio.channels.SelectionKey>
      Specified by:
      size in class java.util.AbstractCollection<java.nio.channels.SelectionKey>
    • iterator

      public java.util.Iterator<java.nio.channels.SelectionKey> iterator()
      Specified by:
      iterator in interface java.util.Collection<java.nio.channels.SelectionKey>
      Specified by:
      iterator in interface java.lang.Iterable<java.nio.channels.SelectionKey>
      Specified by:
      iterator in interface java.util.Set<java.nio.channels.SelectionKey>
      Specified by:
      iterator in class java.util.AbstractCollection<java.nio.channels.SelectionKey>
    • reset

      void reset()
    • reset

      void reset(int start)
    • increaseCapacity

      private void increaseCapacity()