Iterable<E>
, Collection<E>
, Set<E>
public class RemovableSingletonSet<E> extends AbstractSet<E>
Constructor | Description |
---|---|
RemovableSingletonSet(E element) |
Modifier and Type | Method | Description |
---|---|---|
void |
clear() |
|
boolean |
contains(Object o) |
|
boolean |
isEmpty() |
|
Iterator<E> |
iterator() |
|
boolean |
remove(Object o) |
|
int |
size() |
add, addAll, containsAll, retainAll, toArray, toArray, toString
equals, hashCode, removeAll
parallelStream, removeIf, stream
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
add, addAll, containsAll, retainAll, spliterator, toArray, toArray
public RemovableSingletonSet(E element)
public void clear()
clear
in interface Collection<E>
clear
in interface Set<E>
clear
in class AbstractCollection<E>
public boolean contains(Object o)
contains
in interface Collection<E>
contains
in interface Set<E>
contains
in class AbstractCollection<E>
public boolean isEmpty()
isEmpty
in interface Collection<E>
isEmpty
in interface Set<E>
isEmpty
in class AbstractCollection<E>
public boolean remove(Object o)
remove
in interface Collection<E>
remove
in interface Set<E>
remove
in class AbstractCollection<E>
public int size()
size
in interface Collection<E>
size
in interface Set<E>
size
in class AbstractCollection<E>