org.bson
Class LazyBSONObject.LazyBSONKeySet

java.lang.Object
  extended by org.bson.LazyBSONObject.LazyBSONKeySet
All Implemented Interfaces:
Iterable<String>, Collection<String>, Set<String>
Enclosing class:
LazyBSONObject

public class LazyBSONObject.LazyBSONKeySet
extends Object


Constructor Summary
LazyBSONObject.LazyBSONKeySet()
           
 
Method Summary
 boolean add(String e)
           
 boolean addAll(Collection<? extends E> c)
           
 void clear()
           
 boolean contains(Object o)
           
 boolean containsAll(Collection<?> collection)
           
 boolean isEmpty()
           
 Iterator<String> iterator()
           
 boolean remove(Object o)
           
 boolean removeAll(Collection<?> c)
           
 boolean retainAll(Collection<?> c)
           
 int size()
          This method runs in time linear to the total size of all keys in the document.
 String[] toArray()
           
<T> T[]
toArray(T[] a)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Set
equals, hashCode
 

Constructor Detail

LazyBSONObject.LazyBSONKeySet

public LazyBSONObject.LazyBSONKeySet()
Method Detail

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>