T
- the type of element stored in the setpublic class DelegatingSet<T> extends Object implements Set<T>
Constructor and Description |
---|
DelegatingSet(Set<T> delegate) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(T t) |
boolean |
addAll(Collection<? extends T> c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
boolean |
equals(Object o) |
void |
forEach(java.util.function.Consumer<? super T> action) |
int |
hashCode() |
boolean |
isEmpty() |
Iterator<T> |
iterator() |
java.util.stream.Stream<T> |
parallelStream() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
removeIf(java.util.function.Predicate<? super T> filter) |
boolean |
retainAll(Collection<?> c) |
int |
size() |
Spliterator<T> |
spliterator() |
java.util.stream.Stream<T> |
stream() |
Object[] |
toArray() |
<T1> T1[] |
toArray(T1[] a) |
public int size()
public boolean isEmpty()
public boolean contains(Object o)
public Object[] toArray()
public <T1> T1[] toArray(T1[] a)
public boolean add(T t)
public boolean remove(Object o)
public boolean containsAll(Collection<?> c)
containsAll
in interface Collection<T>
containsAll
in interface Set<T>
public boolean addAll(Collection<? extends T> c)
public boolean retainAll(Collection<?> c)
public boolean removeAll(Collection<?> c)
public void clear()
public boolean equals(Object o)
public int hashCode()
public Spliterator<T> spliterator()
spliterator
in interface Iterable<T>
spliterator
in interface Collection<T>
spliterator
in interface Set<T>
public boolean removeIf(java.util.function.Predicate<? super T> filter)
removeIf
in interface Collection<T>
public java.util.stream.Stream<T> stream()
stream
in interface Collection<T>
public java.util.stream.Stream<T> parallelStream()
parallelStream
in interface Collection<T>
public void forEach(java.util.function.Consumer<? super T> action)
Copyright © 2023. All Rights Reserved.