Package org.bson

Class BsonElement


  • @Deprecated(since="2022-10-31")
    public class BsonElement
    extends java.lang.Object
    Deprecated.
    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
    • 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 key
        value - 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 BsonValue containing the value of this element.
      • equals

        public boolean equals​(java.lang.Object o)
        Deprecated.
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Deprecated.
        Overrides:
        hashCode in class java.lang.Object