org.bson
Class LazyBSONObject.LazyBSONKeySet
java.lang.Object
org.bson.LazyBSONObject.LazyBSONKeySet
- All Implemented Interfaces:
- Iterable<String>, Collection<String>, Set<String>
- Enclosing class:
- LazyBSONObject
public class LazyBSONObject.LazyBSONKeySet
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LazyBSONObject.LazyBSONKeySet
public LazyBSONObject.LazyBSONKeySet()
size
public int size()
- This method runs in time linear to the total size of all keys in the document.
- Returns:
- the number of keys in the document
isEmpty
public boolean isEmpty()
contains
public boolean contains(Object o)
iterator
public Iterator<String> iterator()
toArray
public String[] toArray()
toArray
public <T> T[] toArray(T[] a)
add
public boolean add(String e)
- Specified by:
add
in interface Collection<String>
- Specified by:
add
in interface Set<String>
remove
public boolean remove(Object o)
- Specified by:
remove
in interface Collection<String>
- Specified by:
remove
in interface Set<String>
containsAll
public boolean containsAll(Collection<?> collection)
addAll
public boolean addAll(Collection<? extends E> c)
- Specified by:
addAll
in interface Collection<E>
- Specified by:
addAll
in interface Set<E>
retainAll
public boolean retainAll(Collection<?> c)
- Specified by:
retainAll
in interface Collection<E>
- Specified by:
retainAll
in interface Set<E>
removeAll
public boolean removeAll(Collection<?> c)
- Specified by:
removeAll
in interface Collection<E>
- Specified by:
removeAll
in interface Set<E>
clear
public void clear()
- Specified by:
clear
in interface Collection<E>
- Specified by:
clear
in interface Set<E>