Class ConcurrentHashSet<V>
- java.lang.Object
-
- com.itextpdf.commons.datastructures.ConcurrentHashSet<V>
-
- Type Parameters:
V- type of the values
- All Implemented Interfaces:
java.lang.Iterable<V>,java.util.Collection<V>,java.util.Set<V>
public class ConcurrentHashSet<V> extends java.lang.Object implements java.util.Set<V>Concurrent hash set implementation.
-
-
Constructor Summary
Constructors Constructor Description ConcurrentHashSet()Constructs a new, empty set.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(V o)booleanaddAll(java.util.Collection c)voidclear()booleancontains(java.lang.Object o)booleancontainsAll(java.util.Collection c)booleanequals(java.lang.Object o)voidforEach(java.util.function.Consumer<? super V> consumer)inthashCode()booleanisEmpty()java.util.Iterator<V>iterator()booleanremove(java.lang.Object o)booleanremoveAll(java.util.Collection c)booleanretainAll(java.util.Collection c)intsize()java.lang.Object[]toArray()V[]toArray(java.lang.Object[] a)
-
-
-
Field Detail
-
set
private final java.util.Set<V> set
-
-
Method Detail
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
contains
public boolean contains(java.lang.Object o)
-
iterator
public java.util.Iterator<V> iterator()
-
toArray
public java.lang.Object[] toArray()
-
add
public boolean add(V o)
-
remove
public boolean remove(java.lang.Object o)
-
addAll
public boolean addAll(java.util.Collection c)
-
clear
public void clear()
-
equals
public boolean equals(java.lang.Object o)
-
hashCode
public int hashCode()
-
forEach
public void forEach(java.util.function.Consumer<? super V> consumer)
- Specified by:
forEachin interfacejava.lang.Iterable<V>
-
removeAll
public boolean removeAll(java.util.Collection c)
-
retainAll
public boolean retainAll(java.util.Collection c)
-
containsAll
public boolean containsAll(java.util.Collection c)
-
-