public class BsonElement
extends java.lang.Object
BsonDocument
Constructor and Description |
---|
BsonElement(java.lang.String name,
BsonValue value)
Construct a new instance with the given key and value
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getName()
Gets the name of the key/field.
|
BsonValue |
getValue()
Gets the value of this element.
|
int |
hashCode() |
public BsonElement(java.lang.String name, BsonValue value)
name
- the non-null keyvalue
- the non-null valuepublic java.lang.String getName()
public BsonValue getValue()
BsonValue
containing the value of this element.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object