Class ConcurrentSet<E>

java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<E>
io.netty.util.internal.ConcurrentSet<E>
All Implemented Interfaces:
java.io.Serializable, java.lang.Iterable<E>, java.util.Collection<E>, java.util.Set<E>

@Deprecated public final class ConcurrentSet<E> extends java.util.AbstractSet<E> implements java.io.Serializable
Deprecated.
For removal in Netty 4.2. Please use ConcurrentHashMap.newKeySet() instead
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final java.util.concurrent.ConcurrentMap<E, java.lang.Boolean>
    Deprecated.
     
    private static final long
    Deprecated.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
    Creates a new instance which wraps the specified map.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    add(E o)
    Deprecated.
     
    void
    Deprecated.
     
    boolean
    contains(java.lang.Object o)
    Deprecated.
     
    java.util.Iterator<E>
    Deprecated.
     
    boolean
    remove(java.lang.Object o)
    Deprecated.
     
    int
    Deprecated.
     

    Methods inherited from class java.util.AbstractSet

    equals, hashCode, removeAll

    Methods inherited from class java.util.AbstractCollection

    addAll, 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, containsAll, isEmpty, retainAll, spliterator, toArray, toArray
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Deprecated.
      See Also:
    • map

      private final java.util.concurrent.ConcurrentMap<E, java.lang.Boolean> map
      Deprecated.
  • Constructor Details

    • ConcurrentSet

      public ConcurrentSet()
      Deprecated.
      Creates a new instance which wraps the specified map.
  • Method Details

    • size

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

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

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

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

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

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