Class UpdateDescription


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

      • UpdateDescription

        public UpdateDescription​(@Nullable @BsonProperty("removedFields")
                                 List<String> removedFields,
                                 @Nullable @BsonProperty("updatedFields")
                                 org.bson.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 List<String> getRemovedFields()
        Returns the removedFields
        Returns:
        the removedFields
      • getUpdatedFields

        @Nullable
        public org.bson.BsonDocument getUpdatedFields()
        Returns the updatedFields
        Returns:
        the updatedFields
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object