Package org.jboss.resteasy.util.snapshot
Class SnapshotSet<T>
java.lang.Object
org.jboss.resteasy.util.snapshot.SnapshotSet<T>
- All Implemented Interfaces:
Iterable<T>,Collection<T>,Set<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected boolean -
Constructor Summary
ConstructorsConstructorDescriptionSnapshotSet(boolean lockSnapshots) SnapshotSet(Set<T> set, boolean shallow, boolean lockSnapshots, boolean snapFirst) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(Collection<? extends T> collection) voidclear()booleanbooleancontainsAll(Collection<?> collection) copy()booleanvoidinthashCode()booleanisEmpty()iterator()voidbooleanbooleanremoveAll(Collection<?> collection) booleanbooleanretainAll(Collection<?> collection) intsize()stream()Object[]toArray()<T1> T1[]toArray(T1[] t1s) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
toArray
-
Field Details
-
delegate
-
lockSnapshots
protected volatile boolean lockSnapshots -
snapFirst
protected volatile boolean snapFirst
-
-
Constructor Details
-
SnapshotSet
public SnapshotSet(boolean lockSnapshots) -
SnapshotSet
-
-
Method Details
-
copy
-
lockSnapshots
public void lockSnapshots() -
copy
-
add
-
remove
-
addAll
-
retainAll
-
removeAll
-
clear
public void clear() -
removeIf
- Specified by:
removeIfin interfaceCollection<T>
-
size
public int size() -
isEmpty
public boolean isEmpty() -
contains
-
iterator
-
toArray
-
toArray
public <T1> T1[] toArray(T1[] t1s) -
containsAll
- Specified by:
containsAllin interfaceCollection<T>- Specified by:
containsAllin interfaceSet<T>
-
equals
-
hashCode
public int hashCode() -
spliterator
- Specified by:
spliteratorin interfaceCollection<T>- Specified by:
spliteratorin interfaceIterable<T>- Specified by:
spliteratorin interfaceSet<T>
-
stream
- Specified by:
streamin interfaceCollection<T>
-
parallelStream
- Specified by:
parallelStreamin interfaceCollection<T>
-
forEach
-