Class UpdateDescription



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

      Constructors 
      Constructor Description
      UpdateDescription​(java.util.List<java.lang.String> removedFields, org.bson.BsonDocument updatedFields)
      Creates a new instance
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      java.util.List<java.lang.String> getRemovedFields​()
      Returns the removedFields
      org.bson.BsonDocument getUpdatedFields​()
      Returns the updatedFields
      int hashCode​()  
      java.lang.String toString​()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • UpdateDescription

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

        @Nullable
        public org.bson.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