Class BsonField

java.lang.Object
com.mongodb.client.model.BsonField

@Deprecated(since="2021-05-27") public final class BsonField extends Object
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
A representation of a BSON document field whose value is another BSON document.
Since:
3.1
See Also:
  • Constructor Details

    • BsonField

      public BsonField(String name, Bson value)
      Deprecated.
      Construct an instance
      Parameters:
      name - the field name
      value - the field value
  • Method Details

    • getName

      public String getName()
      Deprecated.
      Gets the field name
      Returns:
      the field name
    • getValue

      public Bson getValue()
      Deprecated.
      Gets the field value
      Returns:
      the field value
    • equals

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

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object