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 boolean
add(V o)
boolean
addAll(java.util.Collection c)
void
clear()
boolean
contains(java.lang.Object o)
boolean
containsAll(java.util.Collection c)
boolean
equals(java.lang.Object o)
void
forEach(java.util.function.Consumer<? super V> consumer)
int
hashCode()
boolean
isEmpty()
java.util.Iterator<V>
iterator()
boolean
remove(java.lang.Object o)
boolean
removeAll(java.util.Collection c)
boolean
retainAll(java.util.Collection c)
int
size()
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:
forEach
in 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)
-
-