Serializable, Iterable<E>, Collection<E>, Set<E>public final class MapBackedSet<E> extends AbstractSet<E> implements Serializable
<E> Set<E> Collections.newSetFromMap(Map<E,Boolean>).
It will be removed in Lucene 4.| Constructor | Description |
|---|---|
MapBackedSet(Map<E,Boolean> map) |
Creates a new instance which wraps the specified
map. |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
add(E o) |
|
void |
clear() |
|
boolean |
contains(Object o) |
|
Iterator<E> |
iterator() |
|
boolean |
remove(Object o) |
|
int |
size() |
addAll, containsAll, isEmpty, retainAll, toArray, toArray, toStringequals, hashCode, removeAllparallelStream, removeIf, streamclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, containsAll, isEmpty, retainAll, spliterator, toArray, toArraypublic int size()
size in interface Collection<E>size in interface Set<E>size 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 add(E o)
add in interface Collection<E>add in interface Set<E>add 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 void clear()
clear in interface Collection<E>clear in interface Set<E>clear in class AbstractCollection<E>Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.