Class UpdateDescription


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

      • UpdateDescription

        public UpdateDescription​(@Nullable @BsonProperty("removedFields")
                                 java.util.List<java.lang.String> 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 java.util.List<java.lang.String> getRemovedFields()
        Returns the removedFields
        Returns:
        the removedFields
      • getUpdatedFields

        @Nullable
        public BsonDocument getUpdatedFields()
        Returns the updatedFields
        Returns:
        the updatedFields
      • 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
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object