Package org.bson

Class BsonUndefined


  • public final class BsonUndefined
    extends BsonValue
    Represents the value associated with the BSON Undefined type. All values of this type are identical. Note that this type has been deprecated in the BSON specification.
    Since:
    3.0
    See Also:
    BSON Spec, BsonType.UNDEFINED
    • Constructor Detail

      • BsonUndefined

        public BsonUndefined()
    • Method Detail

      • 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​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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