public class AlwaysEmptySet<T> extends Object implements Set<T>
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) |
static <T> Set<T> |
create() |
boolean |
isEmpty() |
Iterator<T> |
iterator() |
static <T> Callable<Set<T>> |
provider() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
int |
size() |
Object[] |
toArray() |
<K> K[] |
toArray(K[] a) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals, hashCode, spliterator
parallelStream, removeIf, stream
public static final Set EMPTY_SET
public static <T> Set<T> create()
public int size()
public boolean isEmpty()
public boolean contains(Object o)
public Object[] toArray()
public <K> K[] toArray(K[] 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)
Copyright © 2017. All rights reserved.