Class UpdateDescription


  • public final class UpdateDescription
    extends 
    The update description for changed fields in a $changeStream operation.
    Since:
    3.6
    • Constructor Detail

      • UpdateDescription

        public UpdateDescription​(@Nullable @BsonProperty("removedFields")
                                 <> removedFields,
                                 @Nullable @BsonProperty("updatedFields")
                                 BsonDocument updatedFields)
        Creates a new instance
        Parameters:
        removedFields - the list of fields that have been removed.
        updatedFields - the updated fields
    • Method Detail

      • getRemovedFields

        @Nullable
        public <> getRemovedFields()
        Returns the removedFields
        Returns:
        the removedFields
      • getUpdatedFields

        @Nullable
        public BsonDocument getUpdatedFields()
        Returns the updatedFields
        Returns:
        the updatedFields
      • equals

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

        public int hashCode()
        Overrides:
         in class 
      • toString

        public  toString()
        Overrides:
         in class