| Constructor and Description |
|---|
Set()
The default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(E element)
Add an element to the Set.
|
boolean |
contains(E element)
Check whether the specified element exists in the Set.
|
Iterator<E> |
iterator()
An iterator for the elements in the Set.
|
void |
remove(E element)
Remove an element from the Set.
|
int |
size()
The number of elements currently in the Set.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic void add(E element)
element - The element to add.public void remove(E element)
element - The element to remove.public boolean contains(E element)
element - public int size()
Copyright © 2019. All rights reserved.