public interface Set<E> extends Collection<E>
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E object) |
boolean |
addAll(Collection<? extends E> collection) |
void |
clear() |
boolean |
contains(Object object) |
boolean |
containsAll(Collection<?> collection) |
boolean |
equals(Object object) |
int |
hashCode() |
boolean |
isEmpty() |
Iterator<E> |
iterator() |
boolean |
remove(Object object) |
boolean |
removeAll(Collection<?> collection) |
boolean |
retainAll(Collection<?> collection) |
int |
size() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] array) |
removeIfboolean add(E object)
add in interface Collection<E>boolean addAll(Collection<? extends E> collection)
addAll in interface Collection<E>void clear()
clear in interface Collection<E>boolean contains(Object object)
contains in interface Collection<E>boolean containsAll(Collection<?> collection)
containsAll in interface Collection<E>boolean equals(Object object)
equals in interface Collection<E>equals in class Objectint hashCode()
hashCode in interface Collection<E>hashCode in class Objectboolean isEmpty()
isEmpty in interface Collection<E>boolean remove(Object object)
remove in interface Collection<E>boolean removeAll(Collection<?> collection)
removeAll in interface Collection<E>boolean retainAll(Collection<?> collection)
retainAll in interface Collection<E>int size()
size in interface Collection<E>Object[] toArray()
toArray in interface Collection<E><T> T[] toArray(T[] array)
toArray in interface Collection<E>Copyright © 2026. All rights reserved.