E
- element type.public interface Set<E> extends Collection<E>
Modifier and Type | Method and Description |
---|---|
boolean |
add(E o) |
boolean |
addAll(Collection<? extends E> c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
isEmpty() |
Iterator<E> |
iterator() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
int |
size() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
boolean add(E o)
add
in interface Collection<E>
boolean addAll(Collection<? extends E> c)
addAll
in interface Collection<E>
void clear()
clear
in interface Collection<E>
boolean contains(Object o)
contains
in interface Collection<E>
boolean containsAll(Collection<?> c)
containsAll
in interface Collection<E>
boolean equals(Object o)
equals
in interface Collection<E>
equals
in class Object
int hashCode()
hashCode
in interface Collection<E>
hashCode
in class Object
boolean isEmpty()
isEmpty
in interface Collection<E>
boolean remove(Object o)
remove
in interface Collection<E>
boolean removeAll(Collection<?> c)
removeAll
in interface Collection<E>
boolean retainAll(Collection<?> c)
retainAll
in interface Collection<E>
int size()
size
in interface Collection<E>
Object[] toArray()
toArray
in interface Collection<E>
<T> T[] toArray(T[] a)
toArray
in interface Collection<E>
Copyright © 2018. All rights reserved.