Package org.bson

Class BsonNull


public final class BsonNull extends BsonValue
A representation of the BSON Null type.
Since:
3.0
  • Field Details

    • VALUE

      public static final BsonNull VALUE
      A singleton instance of the null value.
  • Constructor Details

    • BsonNull

      public BsonNull()
  • Method Details

    • getBsonType

      public BsonType getBsonType()
      Description copied from class: BsonValue
      Gets the BSON type of this value.
      Specified by:
      getBsonType in class BsonValue
      Returns:
      the BSON type, which may not be null (but may be BSONType.NULL)
    • equals

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

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

      public String toString()
      Overrides:
      toString in class Object