Class TruncatedArray
- java.lang.Object
-
- com.mongodb.client.model.changestream.TruncatedArray
-
public final class TruncatedArray extends Object
A part of anUpdateDescriptionobject specifying a change to a field of the array type when the change is reported as truncation.- Since:
- 4.3
-
-
Constructor Summary
Constructors Constructor Description TruncatedArray(String field, int newSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetField()Returns the name of the truncated field.intgetNewSize()Returns the size of the new field value.inthashCode()StringtoString()
-
-
-
Constructor Detail
-
TruncatedArray
public TruncatedArray(@BsonProperty("field") String field, @BsonProperty("newSize") int newSize)
- Parameters:
field- The name of the field that was truncated.newSize- The size of the new field value.
-
-