Class SnapshotSet<T>
java.lang.Object
org.jboss.resteasy.util.snapshot.SnapshotSet<T>
- All Implemented Interfaces:
Iterable<T>
,Collection<T>
,Set<T>
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected boolean
-
Constructor Summary
ConstructorDescriptionSnapshotSet
(boolean lockSnapshots) SnapshotSet
(Set<T> set, boolean shallow, boolean lockSnapshots, boolean snapFirst) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
addAll
(Collection<? extends T> collection) void
clear()
boolean
boolean
containsAll
(Collection<?> collection) copy()
boolean
void
int
hashCode()
boolean
isEmpty()
iterator()
void
boolean
boolean
removeAll
(Collection<?> collection) boolean
boolean
retainAll
(Collection<?> collection) int
size()
stream()
Object[]
toArray()
<T1> T1[]
toArray
(T1[] t1s) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods 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
-
removeIf
- Specified by:
removeIf
in interfaceCollection<T>
-
size
-
isEmpty
-
contains
-
iterator
-
toArray
-
toArray
-
containsAll
- Specified by:
containsAll
in interfaceCollection<T>
- Specified by:
containsAll
in interfaceSet<T>
-
equals
-
hashCode
-
spliterator
- Specified by:
spliterator
in interfaceCollection<T>
- Specified by:
spliterator
in interfaceIterable<T>
- Specified by:
spliterator
in interfaceSet<T>
-
stream
- Specified by:
stream
in interfaceCollection<T>
-
parallelStream
- Specified by:
parallelStream
in interfaceCollection<T>
-
forEach
-