E - 元素类型public class SetWrapper<E> extends SimpleWrapper<Set<E>> implements Set<E>
raw| Constructor and Description |
|---|
SetWrapper(Set<E> raw)
构造
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E e) |
boolean |
addAll(Collection<? extends E> c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
void |
forEach(Consumer<? super E> action) |
boolean |
isEmpty() |
Iterator<E> |
iterator() |
Stream<E> |
parallelStream() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
removeIf(Predicate<? super E> filter) |
boolean |
retainAll(Collection<?> c) |
int |
size() |
Spliterator<E> |
spliterator() |
Stream<E> |
stream() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
getRawpublic int size()
public boolean isEmpty()
public boolean contains(Object o)
public Object[] toArray()
public <T> T[] toArray(T[] a)
public boolean add(E e)
public boolean remove(Object o)
public boolean containsAll(Collection<?> c)
containsAll in interface Collection<E>containsAll in interface Set<E>public boolean addAll(Collection<? extends E> c)
public boolean retainAll(Collection<?> c)
public boolean removeAll(Collection<?> c)
public boolean removeIf(Predicate<? super E> filter)
removeIf in interface Collection<E>public void clear()
public Spliterator<E> spliterator()
spliterator in interface Iterable<E>spliterator in interface Collection<E>spliterator in interface Set<E>public Stream<E> stream()
stream in interface Collection<E>public Stream<E> parallelStream()
parallelStream in interface Collection<E>Copyright © 2025. All rights reserved.