Package org.eclipse.jetty.util
Class ConcurrentHashSet<E>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<E>
-
- org.eclipse.jetty.util.ConcurrentHashSet<E>
-
- All Implemented Interfaces:
Iterable<E>,Collection<E>,Set<E>
@Deprecated public class ConcurrentHashSet<E> extends AbstractSet<E> implements Set<E>
Deprecated.Use Java 8 methodConcurrentHashMap.newKeySet()instead.
-
-
Constructor Summary
Constructors Constructor Description ConcurrentHashSet()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanadd(E e)Deprecated.voidclear()Deprecated.booleancontains(Object o)Deprecated.booleancontainsAll(Collection<?> c)Deprecated.booleanequals(Object o)Deprecated.inthashCode()Deprecated.booleanisEmpty()Deprecated.Iterator<E>iterator()Deprecated.booleanremove(Object o)Deprecated.booleanremoveAll(Collection<?> c)Deprecated.booleanretainAll(Collection<?> c)Deprecated.intsize()Deprecated.Object[]toArray()Deprecated.<T> T[]toArray(T[] a)Deprecated.StringtoString()Deprecated.-
Methods inherited from class java.util.AbstractCollection
addAll
-
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.util.Set
addAll, spliterator
-
-
-
-
Method Detail
-
add
public boolean add(E e)
Deprecated.- Specified by:
addin interfaceCollection<E>- Specified by:
addin interfaceSet<E>- Overrides:
addin classAbstractCollection<E>
-
clear
public void clear()
Deprecated.- Specified by:
clearin interfaceCollection<E>- Specified by:
clearin interfaceSet<E>- Overrides:
clearin classAbstractCollection<E>
-
contains
public boolean contains(Object o)
Deprecated.- Specified by:
containsin interfaceCollection<E>- Specified by:
containsin interfaceSet<E>- Overrides:
containsin classAbstractCollection<E>
-
containsAll
public boolean containsAll(Collection<?> c)
Deprecated.- Specified by:
containsAllin interfaceCollection<E>- Specified by:
containsAllin interfaceSet<E>- Overrides:
containsAllin classAbstractCollection<E>
-
equals
public boolean equals(Object o)
Deprecated.- Specified by:
equalsin interfaceCollection<E>- Specified by:
equalsin interfaceSet<E>- Overrides:
equalsin classAbstractSet<E>
-
hashCode
public int hashCode()
Deprecated.- Specified by:
hashCodein interfaceCollection<E>- Specified by:
hashCodein interfaceSet<E>- Overrides:
hashCodein classAbstractSet<E>
-
isEmpty
public boolean isEmpty()
Deprecated.- Specified by:
isEmptyin interfaceCollection<E>- Specified by:
isEmptyin interfaceSet<E>- Overrides:
isEmptyin classAbstractCollection<E>
-
remove
public boolean remove(Object o)
Deprecated.- Specified by:
removein interfaceCollection<E>- Specified by:
removein interfaceSet<E>- Overrides:
removein classAbstractCollection<E>
-
removeAll
public boolean removeAll(Collection<?> c)
Deprecated.- Specified by:
removeAllin interfaceCollection<E>- Specified by:
removeAllin interfaceSet<E>- Overrides:
removeAllin classAbstractSet<E>
-
retainAll
public boolean retainAll(Collection<?> c)
Deprecated.- Specified by:
retainAllin interfaceCollection<E>- Specified by:
retainAllin interfaceSet<E>- Overrides:
retainAllin classAbstractCollection<E>
-
size
public int size()
Deprecated.- Specified by:
sizein interfaceCollection<E>- Specified by:
sizein interfaceSet<E>- Specified by:
sizein classAbstractCollection<E>
-
toArray
public Object[] toArray()
Deprecated.- Specified by:
toArrayin interfaceCollection<E>- Specified by:
toArrayin interfaceSet<E>- Overrides:
toArrayin classAbstractCollection<E>
-
toArray
public <T> T[] toArray(T[] a)
Deprecated.- Specified by:
toArrayin interfaceCollection<E>- Specified by:
toArrayin interfaceSet<E>- Overrides:
toArrayin classAbstractCollection<E>
-
toString
public String toString()
Deprecated.- Overrides:
toStringin classAbstractCollection<E>
-
-