Package io.aether.utils
Class ConcurrentHashSet<T>
- java.lang.Object
-
- io.aether.utils.ConcurrentHashSet<T>
-
- All Implemented Interfaces:
java.lang.Iterable<T>,java.util.Collection<T>,java.util.Set<T>
public class ConcurrentHashSet<T> extends java.lang.Object implements java.util.Set<T>
-
-
Constructor Summary
Constructors Constructor Description ConcurrentHashSet()ConcurrentHashSet(java.util.Collection<T> c)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(T t)booleanaddAll(@NotNull java.util.Collection<? extends T> c)voidclear()booleancontains(java.lang.Object o)booleancontainsAll(@NotNull java.util.Collection<?> c)booleanequals(java.lang.Object o)voidforEach(java.util.function.Consumer<? super T> action)inthashCode()booleanisEmpty()@NotNull java.util.Iterator<T>iterator()java.util.stream.Stream<T>parallelStream()booleanremove(java.lang.Object o)booleanremoveAll(@NotNull java.util.Collection<?> c)booleanremoveIf(java.util.function.Predicate<? super T> filter)booleanretainAll(@NotNull java.util.Collection<?> c)intsize()java.util.Spliterator<T>spliterator()java.util.stream.Stream<T>stream()@NotNull java.lang.Object @NotNull []toArray()<T1> @NotNull T1 @NotNull []toArray(@NotNull T1 @NotNull [] a)<T1> T1[]toArray(java.util.function.IntFunction<T1[]> generator)java.lang.StringtoString()
-
-
-
Constructor Detail
-
ConcurrentHashSet
public ConcurrentHashSet()
-
ConcurrentHashSet
public ConcurrentHashSet(java.util.Collection<T> c)
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
contains
public boolean contains(java.lang.Object o)
-
iterator
@NotNull public @NotNull java.util.Iterator<T> iterator()
-
toArray
@NotNull public @NotNull java.lang.Object @NotNull [] toArray()
-
toArray
@NotNull public <T1> @NotNull T1 @NotNull [] toArray(@NotNull @NotNull T1 @NotNull [] a)
-
add
public boolean add(T t)
-
remove
public boolean remove(java.lang.Object o)
-
containsAll
public boolean containsAll(@NotNull @NotNull java.util.Collection<?> c)
-
addAll
public boolean addAll(@NotNull @NotNull java.util.Collection<? extends T> c)
-
retainAll
public boolean retainAll(@NotNull @NotNull java.util.Collection<?> c)
-
removeAll
public boolean removeAll(@NotNull @NotNull java.util.Collection<?> c)
-
clear
public void clear()
-
equals
public boolean equals(java.lang.Object o)
-
hashCode
public int hashCode()
-
spliterator
public java.util.Spliterator<T> spliterator()
-
toArray
public <T1> T1[] toArray(java.util.function.IntFunction<T1[]> generator)
- Specified by:
toArrayin interfacejava.util.Collection<T>
-
removeIf
public boolean removeIf(java.util.function.Predicate<? super T> filter)
- Specified by:
removeIfin interfacejava.util.Collection<T>
-
stream
public java.util.stream.Stream<T> stream()
- Specified by:
streamin interfacejava.util.Collection<T>
-
parallelStream
public java.util.stream.Stream<T> parallelStream()
- Specified by:
parallelStreamin interfacejava.util.Collection<T>
-
-