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>
public class SnapshotSet<T> extends Object implements Set<T>
 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected Set<T>delegateprotected booleanlockSnapshotsprotected booleansnapFirst 
- 
Constructor Summary
Constructors Constructor Description SnapshotSet(boolean lockSnapshots)SnapshotSet(Set<T> set, boolean shallow, boolean lockSnapshots, boolean snapFirst) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(T t)booleanaddAll(Collection<? extends T> collection)voidclear()booleancontains(Object o)booleancontainsAll(Collection<?> collection)protected Set<T>copy()protected HashSet<T>copy(Set<T> set)booleanequals(Object o)voidforEach(Consumer<? super T> action)inthashCode()booleanisEmpty()Iterator<T>iterator()voidlockSnapshots()Stream<T>parallelStream()booleanremove(Object o)booleanremoveAll(Collection<?> collection)booleanremoveIf(Predicate<? super T> filter)booleanretainAll(Collection<?> collection)intsize()Spliterator<T>spliterator()Stream<T>stream()Object[]toArray()<T1> T1[]toArray(T1[] t1s) 
 - 
 
- 
- 
Method Detail
- 
lockSnapshots
public void lockSnapshots()
 
- 
add
public boolean add(T t)
 
- 
remove
public boolean remove(Object o)
 
- 
addAll
public boolean addAll(Collection<? extends T> collection)
 
- 
retainAll
public boolean retainAll(Collection<?> collection)
 
- 
removeAll
public boolean removeAll(Collection<?> collection)
 
- 
clear
public void clear()
 
- 
removeIf
public boolean removeIf(Predicate<? super T> filter)
- Specified by:
 removeIfin interfaceCollection<T>
 
- 
size
public int size()
 
- 
isEmpty
public boolean isEmpty()
 
- 
contains
public boolean contains(Object o)
 
- 
toArray
public Object[] toArray()
 
- 
toArray
public <T1> T1[] toArray(T1[] t1s)
 
- 
containsAll
public boolean containsAll(Collection<?> collection)
- Specified by:
 containsAllin interfaceCollection<T>- Specified by:
 containsAllin interfaceSet<T>
 
- 
equals
public boolean equals(Object o)
 
- 
hashCode
public int hashCode()
 
- 
spliterator
public Spliterator<T> spliterator()
- Specified by:
 spliteratorin interfaceCollection<T>- Specified by:
 spliteratorin interfaceIterable<T>- Specified by:
 spliteratorin interfaceSet<T>
 
- 
stream
public Stream<T> stream()
- Specified by:
 streamin interfaceCollection<T>
 
- 
parallelStream
public Stream<T> parallelStream()
- Specified by:
 parallelStreamin interfaceCollection<T>
 
 - 
 
 -