Class 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[] keys  
      (package private) int size  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean add​(java.nio.channels.SelectionKey o)  
      boolean contains​(java.lang.Object o)  
      private void increaseCapacity()  
      java.util.Iterator<java.nio.channels.SelectionKey> iterator()  
      boolean remove​(java.lang.Object o)  
      (package private) void reset()  
      (package private) void reset​(int start)  
      int size()  
      • 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, toArray
      • Methods inherited from interface java.lang.Iterable

        forEach
      • Methods inherited from interface java.util.Set

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

      • keys

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

        int size
    • Constructor Detail

      • SelectedSelectionKeySet

        SelectedSelectionKeySet()
    • Method Detail

      • 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()