Package org.bson
Class BsonElement
- java.lang.Object
-
- org.bson.BsonElement
-
@Deprecated(since="2022-10-31") public class BsonElement extends java.lang.ObjectDeprecated.Usage of this API is not supported in AEM as a Cloud Service.A mapping from a name to a BsonValue.- Since:
- 3.0
- See Also:
BsonDocument
-
-
Constructor Summary
Constructors Constructor Description BsonElement(java.lang.String name, BsonValue value)Deprecated.Construct a new instance with the given key and value
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(java.lang.Object o)Deprecated.java.lang.StringgetName()Deprecated.Gets the name of the key/field.BsonValuegetValue()Deprecated.Gets the value of this element.inthashCode()Deprecated.
-
-
-
Constructor Detail
-
BsonElement
public BsonElement(java.lang.String name, BsonValue value)Deprecated.Construct a new instance with the given key and value- Parameters:
name- the non-null keyvalue- the non-null value
-
-
Method Detail
-
getName
public java.lang.String getName()
Deprecated.Gets the name of the key/field.- Returns:
- the name of the field.
-
getValue
public BsonValue getValue()
Deprecated.Gets the value of this element.- Returns:
- a
BsonValuecontaining the value of this element.
-
equals
public boolean equals(java.lang.Object o)
Deprecated.- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
Deprecated.- Overrides:
hashCodein classjava.lang.Object
-
-