public class LockableSet<S> extends Lockable implements Set<S>
| Constructor and Description |
|---|
LockableSet(Set<S> set) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(S e) |
boolean |
addAll(Collection<? extends S> c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
boolean |
equals(Object o) |
void |
forEach(Consumer<? super S> action) |
int |
hashCode() |
boolean |
isEmpty() |
Iterator<S> |
iterator() |
Stream<S> |
parallelStream() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
removeIf(Predicate<? super S> filter) |
boolean |
retainAll(Collection<?> c) |
int |
size() |
Spliterator<S> |
spliterator() |
Stream<S> |
stream() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
getDumpRateLimit, withLockpublic int size()
public boolean isEmpty()
public boolean contains(Object o)
public Object[] toArray()
public <T> T[] toArray(T[] a)
public boolean add(S e)
public boolean remove(Object o)
public boolean containsAll(Collection<?> c)
containsAll in interface Collection<S>containsAll in interface Set<S>public boolean addAll(Collection<? extends S> c)
public boolean retainAll(Collection<?> c)
public boolean removeAll(Collection<?> c)
public void clear()
public boolean equals(Object o)
public int hashCode()
public Spliterator<S> spliterator()
spliterator in interface Iterable<S>spliterator in interface Collection<S>spliterator in interface Set<S>public boolean removeIf(Predicate<? super S> filter)
removeIf in interface Collection<S>public Stream<S> stream()
stream in interface Collection<S>public Stream<S> parallelStream()
parallelStream in interface Collection<S>Copyright © 2004–2022. All rights reserved.