Class UpdateDescription
- java.lang.Object
-
- com.mongodb.client.model.changestream.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, 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 removedFieldsBsonDocument
getUpdatedFields()
Returns the updatedFieldsint
hashCode()
java.lang.String
toString()
-
-
-
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 classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-