Class IntObjectHashMap.KeySet

java.lang.Object
java.util.AbstractCollection<java.lang.Integer>
java.util.AbstractSet<java.lang.Integer>
io.netty.util.collection.IntObjectHashMap.KeySet
All Implemented Interfaces:
java.lang.Iterable<java.lang.Integer>, java.util.Collection<java.lang.Integer>, java.util.Set<java.lang.Integer>
Enclosing class:
IntObjectHashMap<V>

private final class IntObjectHashMap.KeySet extends java.util.AbstractSet<java.lang.Integer>
Set implementation for iterating over the keys.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    boolean
    contains(java.lang.Object o)
     
    java.util.Iterator<java.lang.Integer>
     
    boolean
    remove(java.lang.Object o)
     
    boolean
    retainAll(java.util.Collection<?> retainedKeys)
     
    int
     

    Methods inherited from class java.util.AbstractSet

    equals, hashCode, removeAll

    Methods inherited from class java.util.AbstractCollection

    add, addAll, containsAll, isEmpty, 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

    add, addAll, containsAll, isEmpty, spliterator, toArray, toArray
  • Constructor Details

    • KeySet

      private KeySet()
  • Method Details

    • size

      public int size()
      Specified by:
      size in interface java.util.Collection<java.lang.Integer>
      Specified by:
      size in interface java.util.Set<java.lang.Integer>
      Specified by:
      size in class java.util.AbstractCollection<java.lang.Integer>
    • contains

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

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

      public boolean retainAll(java.util.Collection<?> retainedKeys)
      Specified by:
      retainAll in interface java.util.Collection<java.lang.Integer>
      Specified by:
      retainAll in interface java.util.Set<java.lang.Integer>
      Overrides:
      retainAll in class java.util.AbstractCollection<java.lang.Integer>
    • clear

      public void clear()
      Specified by:
      clear in interface java.util.Collection<java.lang.Integer>
      Specified by:
      clear in interface java.util.Set<java.lang.Integer>
      Overrides:
      clear in class java.util.AbstractCollection<java.lang.Integer>
    • iterator

      public java.util.Iterator<java.lang.Integer> iterator()
      Specified by:
      iterator in interface java.util.Collection<java.lang.Integer>
      Specified by:
      iterator in interface java.lang.Iterable<java.lang.Integer>
      Specified by:
      iterator in interface java.util.Set<java.lang.Integer>
      Specified by:
      iterator in class java.util.AbstractCollection<java.lang.Integer>