java.lang.Object
ru.progrm_jarvis.javacommons.collection.concurrent.ConcurrentWrapper<W>
ru.progrm_jarvis.javacommons.collection.concurrent.AbstractConcurrentSizedCollectionWrapper<W>
ru.progrm_jarvis.javacommons.collection.concurrent.ConcurrentSetFromMapWrapper<E,W>
- All Implemented Interfaces:
Iterable<E>,Collection<E>,Set<E>,SizedCollection
public class ConcurrentSetFromMapWrapper<E,W extends Map<E,Boolean>>
extends AbstractConcurrentSizedCollectionWrapper<W>
implements Set<E>
-
Field Summary
FieldsFields inherited from class ru.progrm_jarvis.javacommons.collection.concurrent.ConcurrentWrapper
readLock, wrapped, writeLock -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(@NotNull Collection<? extends E> elements) booleanbooleancontainsAll(@NotNull Collection<?> elements) static <E> @NotNull Set<E>protected voidprotected booleanprotected intiterator()booleanbooleanremoveAll(@NotNull Collection<?> elements) booleanretainAll(@NotNull Collection<?> elements) Object @NotNull []toArray()<T> T @NotNull []toArray(T @NotNull [] targetArray) Methods inherited from class ru.progrm_jarvis.javacommons.collection.concurrent.AbstractConcurrentSizedCollectionWrapper
clear, isEmpty, sizeMethods inherited from class ru.progrm_jarvis.javacommons.collection.concurrent.ConcurrentWrapper
equals, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream
-
Field Details
-
keySet
-
-
Constructor Details
-
ConcurrentSetFromMapWrapper
-
-
Method Details
-
create
-
internalSize
protected int internalSize()- Specified by:
internalSizein classAbstractConcurrentSizedCollectionWrapper<W extends Map<E,Boolean>>
-
internalIsEmpty
protected boolean internalIsEmpty()- Specified by:
internalIsEmptyin classAbstractConcurrentSizedCollectionWrapper<W extends Map<E,Boolean>>
-
internalClear
protected void internalClear()- Specified by:
internalClearin classAbstractConcurrentSizedCollectionWrapper<W extends Map<E,Boolean>>
-
contains
-
remove
-
iterator
-
toArray
-
toArray
public <T> T @NotNull [] toArray(T @NotNull [] targetArray) -
add
-
containsAll
- Specified by:
containsAllin interfaceCollection<E>- Specified by:
containsAllin interfaceSet<E>
-
addAll
-
retainAll
-
removeAll
-