public class

KeyCachingLazyBSONObject

extends LazyBSONObject
java.lang.Object
   ↳ org.bson.LazyBSONObject
     ↳ org.bson.KeyCachingLazyBSONObject

Summary

[Expand]
Inherited Fields
From class org.bson.LazyBSONObject
Public Constructors
KeyCachingLazyBSONObject(byte[] data, LazyBSONCallback cbk)
KeyCachingLazyBSONObject(byte[] data, int offset, LazyBSONCallback cbk)
KeyCachingLazyBSONObject(BSONByteBuffer buffer, LazyBSONCallback callback)
KeyCachingLazyBSONObject(BSONByteBuffer buffer, int offset, LazyBSONCallback callback)
Public Methods
boolean containsField(String s)
Checks if this object contains a field with the given name.
Object get(String key)
Gets a field from this object by a given name.
[Expand]
Inherited Methods
From class org.bson.LazyBSONObject
From class java.lang.Object
From interface org.bson.BSONObject

Public Constructors

public KeyCachingLazyBSONObject (byte[] data, LazyBSONCallback cbk)

public KeyCachingLazyBSONObject (byte[] data, int offset, LazyBSONCallback cbk)

public KeyCachingLazyBSONObject (BSONByteBuffer buffer, LazyBSONCallback callback)

public KeyCachingLazyBSONObject (BSONByteBuffer buffer, int offset, LazyBSONCallback callback)

Public Methods

public boolean containsField (String s)

Checks if this object contains a field with the given name.

Parameters
s Field name for which to check
Returns
  • True if the field is present

public Object get (String key)

Gets a field from this object by a given name.

Parameters
key The name of the field fetch
Returns
  • The field, if found